From 5a8d7c17d1be7e9c53b7b454735e4093b48270c7 Mon Sep 17 00:00:00 2001 From: smutel Date: Fri, 9 Jun 2023 12:25:25 +0000 Subject: [PATCH] ci: Autogeneration of go-netbox library --- ...ts_circuit_terminations_list_parameters.go | 62 + .../circuits_circuit_types_list_parameters.go | 93 + .../circuits_circuits_list_parameters.go | 62 + ...cuits_provider_networks_list_parameters.go | 93 + .../circuits_providers_list_parameters.go | 279 +- .../dcim/dcim_cables_list_parameters.go | 341 +- netbox/client/dcim/dcim_client.go | 369 + ..._console_port_templates_list_parameters.go | 31 + .../dcim_console_ports_list_parameters.go | 93 + ...e_server_port_templates_list_parameters.go | 31 + ...im_console_server_ports_list_parameters.go | 93 + ...im_device_bay_templates_list_parameters.go | 31 + .../dcim/dcim_device_bays_list_parameters.go | 93 + .../dcim/dcim_device_roles_list_parameters.go | 124 + .../dcim/dcim_device_types_list_parameters.go | 341 + .../dcim/dcim_devices_list_parameters.go | 217 + ...im_front_port_templates_list_parameters.go | 62 + .../dcim/dcim_front_ports_list_parameters.go | 124 + ...cim_interface_templates_list_parameters.go | 31 + .../dcim/dcim_interfaces_list_parameters.go | 403 + ...im_inventory_item_roles_list_parameters.go | 93 + ...nventory_item_templates_list_parameters.go | 93 + .../dcim_inventory_items_list_parameters.go | 155 + .../dcim/dcim_locations_list_parameters.go | 93 + .../dcim_manufacturers_list_parameters.go | 93 + ...im_module_bay_templates_list_parameters.go | 31 + .../dcim/dcim_module_bays_list_parameters.go | 93 + .../dcim/dcim_module_types_list_parameters.go | 310 + .../dcim/dcim_modules_list_parameters.go | 124 + .../dcim/dcim_platforms_list_parameters.go | 124 + .../dcim/dcim_power_feeds_list_parameters.go | 31 + ..._power_outlet_templates_list_parameters.go | 31 + .../dcim_power_outlets_list_parameters.go | 93 + .../dcim/dcim_power_panels_list_parameters.go | 31 + ...im_power_port_templates_list_parameters.go | 31 + .../dcim/dcim_power_ports_list_parameters.go | 93 + .../dcim_rack_reservations_list_parameters.go | 31 + .../dcim/dcim_rack_roles_list_parameters.go | 124 + .../client/dcim/dcim_racks_list_parameters.go | 744 + ...cim_rear_port_templates_list_parameters.go | 62 + .../dcim/dcim_rear_ports_list_parameters.go | 124 + .../dcim/dcim_regions_list_parameters.go | 93 + .../dcim/dcim_site_groups_list_parameters.go | 93 + .../client/dcim/dcim_sites_list_parameters.go | 124 + .../dcim_virtual_chassis_list_parameters.go | 62 + ..._device_contexts_bulk_delete_parameters.go | 143 + ...l_device_contexts_bulk_delete_responses.go | 98 + ...contexts_bulk_partial_update_parameters.go | 165 + ..._contexts_bulk_partial_update_responses.go | 113 + ..._device_contexts_bulk_update_parameters.go | 165 + ...l_device_contexts_bulk_update_responses.go | 113 + ...rtual_device_contexts_create_parameters.go | 165 + ...irtual_device_contexts_create_responses.go | 113 + ...rtual_device_contexts_delete_parameters.go | 167 + ...irtual_device_contexts_delete_responses.go | 98 + ...virtual_device_contexts_list_parameters.go | 1704 + ..._virtual_device_contexts_list_responses.go | 279 + ...vice_contexts_partial_update_parameters.go | 188 + ...evice_contexts_partial_update_responses.go | 113 + ...virtual_device_contexts_read_parameters.go | 167 + ..._virtual_device_contexts_read_responses.go | 113 + ...rtual_device_contexts_update_parameters.go | 188 + ...irtual_device_contexts_update_responses.go | 113 + netbox/client/extras/extras_client.go | 369 + .../extras_config_contexts_list_parameters.go | 31 + .../extras_custom_fields_list_parameters.go | 279 + .../extras_custom_links_list_parameters.go | 560 +- ...extras_export_templates_list_parameters.go | 560 +- ...xtras_image_attachments_list_parameters.go | 31 + .../extras_job_results_list_parameters.go | 527 + .../extras_object_changes_list_parameters.go | 62 + ...as_saved_filters_bulk_delete_parameters.go | 143 + ...ras_saved_filters_bulk_delete_responses.go | 98 + ..._filters_bulk_partial_update_parameters.go | 165 + ...d_filters_bulk_partial_update_responses.go | 113 + ...as_saved_filters_bulk_update_parameters.go | 165 + ...ras_saved_filters_bulk_update_responses.go | 113 + .../extras_saved_filters_create_parameters.go | 165 + .../extras_saved_filters_create_responses.go | 113 + .../extras_saved_filters_delete_parameters.go | 167 + .../extras_saved_filters_delete_responses.go | 98 + .../extras_saved_filters_list_parameters.go | 2386 + .../extras_saved_filters_list_responses.go | 279 + ...saved_filters_partial_update_parameters.go | 188 + ..._saved_filters_partial_update_responses.go | 113 + .../extras_saved_filters_read_parameters.go | 167 + .../extras_saved_filters_read_responses.go | 113 + .../extras_saved_filters_update_parameters.go | 188 + .../extras_saved_filters_update_responses.go | 113 + .../extras/extras_tags_list_parameters.go | 124 + .../extras/extras_webhooks_list_parameters.go | 155 + .../ipam/ipam_aggregates_list_parameters.go | 31 + .../client/ipam/ipam_asns_list_parameters.go | 31 + .../ipam/ipam_fhrp_groups_list_parameters.go | 372 + .../ipam/ipam_ip_addresses_list_parameters.go | 62 + .../ipam/ipam_ip_ranges_list_parameters.go | 93 + .../ipam/ipam_l2vpns_list_parameters.go | 93 + .../ipam/ipam_prefixes_list_parameters.go | 31 + .../client/ipam/ipam_rirs_list_parameters.go | 93 + .../client/ipam/ipam_roles_list_parameters.go | 93 + .../ipam_route_targets_list_parameters.go | 62 + .../ipam_service_templates_list_parameters.go | 31 + .../ipam/ipam_services_list_parameters.go | 186 + .../ipam/ipam_vlan_groups_list_parameters.go | 93 + .../client/ipam/ipam_vlans_list_parameters.go | 186 + .../client/ipam/ipam_vrfs_list_parameters.go | 93 + .../tenancy_contact_groups_list_parameters.go | 93 + .../tenancy_contact_roles_list_parameters.go | 93 + .../tenancy_contacts_list_parameters.go | 186 + .../tenancy_tenant_groups_list_parameters.go | 93 + .../tenancy_tenants_list_parameters.go | 93 + ...lization_cluster_groups_list_parameters.go | 93 + ...alization_cluster_types_list_parameters.go | 93 + ...virtualization_clusters_list_parameters.go | 31 + ...rtualization_interfaces_list_parameters.go | 248 + ...zation_virtual_machines_list_parameters.go | 31 + ...ess_wireless_lan_groups_list_parameters.go | 93 + .../wireless_wireless_lans_list_parameters.go | 155 + ...wireless_wireless_links_list_parameters.go | 93 + netbox/models/a_s_n.go | 3 + netbox/models/aggregate.go | 3 + netbox/models/cable.go | 23 + netbox/models/circuit_circuit_termination.go | 20 + netbox/models/cluster.go | 20 + netbox/models/contact.go | 20 + netbox/models/custom_field.go | 43 +- netbox/models/custom_link.go | 15 +- netbox/models/device.go | 28 +- netbox/models/device_type.go | 224 + netbox/models/device_with_config_context.go | 28 +- netbox/models/export_template.go | 17 +- netbox/models/f_h_r_p_group.go | 23 + netbox/models/front_port_rear_port.go | 20 + netbox/models/interface.go | 106 +- netbox/models/interface_template.go | 44 +- netbox/models/ip_address.go | 3 + netbox/models/ip_range.go | 3 + netbox/models/job_result.go | 81 +- netbox/models/l2_v_p_n.go | 3 + netbox/models/module.go | 234 + netbox/models/module_type.go | 225 + .../models/nested_virtual_device_context.go | 244 + netbox/models/power_feed.go | 20 + netbox/models/power_panel.go | 23 + netbox/models/prefix.go | 3 + netbox/models/provider.go | 76 +- netbox/models/rack.go | 278 + netbox/models/rack_reservation.go | 3 + netbox/models/route_target.go | 3 + netbox/models/saved_filter.go | 362 + netbox/models/service.go | 3 + netbox/models/service_template.go | 3 + netbox/models/v_l_a_n.go | 3 + netbox/models/v_r_f.go | 3 + netbox/models/virtual_chassis.go | 23 + netbox/models/virtual_device_context.go | 653 + .../virtual_machine_with_config_context.go | 20 + netbox/models/webhook.go | 6 +- netbox/models/wireless_l_a_n.go | 204 + netbox/models/wireless_link.go | 3 + netbox/models/writable_a_s_n.go | 3 + netbox/models/writable_aggregate.go | 3 + netbox/models/writable_cable.go | 23 + netbox/models/writable_circuit_termination.go | 47 +- netbox/models/writable_cluster.go | 32 +- netbox/models/writable_console_port.go | 47 +- .../models/writable_console_port_template.go | 32 +- netbox/models/writable_console_server_port.go | 47 +- .../writable_console_server_port_template.go | 32 +- netbox/models/writable_contact.go | 32 +- netbox/models/writable_contact_assignment.go | 10 +- netbox/models/writable_contact_group.go | 16 +- netbox/models/writable_custom_field.go | 36 +- netbox/models/writable_device_type.go | 79 + .../writable_device_with_config_context.go | 86 +- netbox/models/writable_front_port.go | 47 +- netbox/models/writable_front_port_template.go | 32 +- netbox/models/writable_interface.go | 91 +- netbox/models/writable_interface_template.go | 54 +- netbox/models/writable_ip_address.go | 3 + netbox/models/writable_ip_range.go | 3 + netbox/models/writable_l2_v_p_n.go | 3 + netbox/models/writable_module.go | 83 + netbox/models/writable_module_type.go | 80 + netbox/models/writable_power_feed.go | 61 +- netbox/models/writable_power_outlet.go | 47 +- .../models/writable_power_outlet_template.go | 32 +- netbox/models/writable_power_panel.go | 23 + netbox/models/writable_power_port.go | 47 +- netbox/models/writable_power_port_template.go | 32 +- netbox/models/writable_prefix.go | 3 + netbox/models/writable_provider.go | 70 +- netbox/models/writable_rack.go | 129 +- netbox/models/writable_rack_reservation.go | 3 + netbox/models/writable_rear_port.go | 47 +- netbox/models/writable_rear_port_template.go | 32 +- netbox/models/writable_route_target.go | 3 + netbox/models/writable_service.go | 3 + netbox/models/writable_service_template.go | 3 + netbox/models/writable_v_l_a_n.go | 19 +- netbox/models/writable_v_r_f.go | 3 + netbox/models/writable_virtual_chassis.go | 23 + .../models/writable_virtual_device_context.go | 450 + ...ble_virtual_machine_with_config_context.go | 20 + netbox/models/writable_wireless_l_a_n.go | 59 + .../models/writable_wireless_l_a_n_group.go | 16 +- netbox/models/writable_wireless_link.go | 3 + ...gger-v3.3.10.json => swagger-v3.4.10.json} | 7139 +- swagger/swagger-v3.4.10.json | 82422 ++++++++++++++++ 209 files changed, 112497 insertions(+), 2916 deletions(-) create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_create_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_create_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_delete_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_delete_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_list_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_list_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_partial_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_partial_update_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_read_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_read_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_delete_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_delete_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_partial_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_partial_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_create_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_create_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_delete_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_delete_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_list_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_list_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_partial_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_partial_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_read_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_read_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_update_responses.go create mode 100644 netbox/models/nested_virtual_device_context.go create mode 100644 netbox/models/saved_filter.go create mode 100644 netbox/models/virtual_device_context.go create mode 100644 netbox/models/writable_virtual_device_context.go rename netbox/{swagger-v3.3.10.json => swagger-v3.4.10.json} (94%) create mode 100644 swagger/swagger-v3.4.10.json diff --git a/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go b/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go index b7b2e74e..5861098a 100644 --- a/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go +++ b/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go @@ -113,6 +113,9 @@ type CircuitsCircuitTerminationsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -269,6 +272,9 @@ type CircuitsCircuitTerminationsListParams struct { // XconnectID. XconnectID *string + // XconnectIDEmpty. + XconnectIDEmpty *string + // XconnectIDIc. XconnectIDIc *string @@ -481,6 +487,17 @@ func (o *CircuitsCircuitTerminationsListParams) SetDescription(description *stri o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsCircuitTerminationsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithDescriptionIc(descriptionIc *string) *CircuitsCircuitTerminationsListParams { o.SetDescriptionIc(descriptionIc) @@ -1020,6 +1037,17 @@ func (o *CircuitsCircuitTerminationsListParams) SetXconnectID(xconnectID *string o.XconnectID = xconnectID } +// WithXconnectIDEmpty adds the xconnectIDEmpty to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDEmpty(xconnectIDEmpty *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDEmpty(xconnectIDEmpty) + return o +} + +// SetXconnectIDEmpty adds the xconnectIdEmpty to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDEmpty(xconnectIDEmpty *string) { + o.XconnectIDEmpty = xconnectIDEmpty +} + // WithXconnectIDIc adds the xconnectIDIc to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIc(xconnectIDIc *string) *CircuitsCircuitTerminationsListParams { o.SetXconnectIDIc(xconnectIDIc) @@ -1331,6 +1359,23 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2164,6 +2209,23 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } } + if o.XconnectIDEmpty != nil { + + // query param xconnect_id__empty + var qrXconnectIDEmpty string + + if o.XconnectIDEmpty != nil { + qrXconnectIDEmpty = *o.XconnectIDEmpty + } + qXconnectIDEmpty := qrXconnectIDEmpty + if qXconnectIDEmpty != "" { + + if err := r.SetQueryParam("xconnect_id__empty", qXconnectIDEmpty); err != nil { + return err + } + } + } + if o.XconnectIDIc != nil { // query param xconnect_id__ic diff --git a/netbox/client/circuits/circuits_circuit_types_list_parameters.go b/netbox/client/circuits/circuits_circuit_types_list_parameters.go index d2f08056..07d09d8f 100644 --- a/netbox/client/circuits/circuits_circuit_types_list_parameters.go +++ b/netbox/client/circuits/circuits_circuit_types_list_parameters.go @@ -98,6 +98,9 @@ type CircuitsCircuitTypesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type CircuitsCircuitTypesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -215,6 +221,9 @@ type CircuitsCircuitTypesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -378,6 +387,17 @@ func (o *CircuitsCircuitTypesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsCircuitTypesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithDescriptionIc(descriptionIc *string) *CircuitsCircuitTypesListParams { o.SetDescriptionIc(descriptionIc) @@ -631,6 +651,17 @@ func (o *CircuitsCircuitTypesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameEmpty(nameEmpty *string) *CircuitsCircuitTypesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithNameIc(nameIc *string) *CircuitsCircuitTypesListParams { o.SetNameIc(nameIc) @@ -774,6 +805,17 @@ func (o *CircuitsCircuitTypesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugEmpty(slugEmpty *string) *CircuitsCircuitTypesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithSlugIc(slugIc *string) *CircuitsCircuitTypesListParams { o.SetSlugIc(slugIc) @@ -1022,6 +1064,23 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1413,6 +1472,23 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1634,6 +1710,23 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/circuits/circuits_circuits_list_parameters.go b/netbox/client/circuits/circuits_circuits_list_parameters.go index e3795f45..52993d7c 100644 --- a/netbox/client/circuits/circuits_circuits_list_parameters.go +++ b/netbox/client/circuits/circuits_circuits_list_parameters.go @@ -80,6 +80,9 @@ type CircuitsCircuitsListParams struct { // Cid. Cid *string + // CidEmpty. + CidEmpty *string + // CidIc. CidIc *string @@ -164,6 +167,9 @@ type CircuitsCircuitsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -450,6 +456,17 @@ func (o *CircuitsCircuitsListParams) SetCid(cid *string) { o.Cid = cid } +// WithCidEmpty adds the cidEmpty to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidEmpty(cidEmpty *string) *CircuitsCircuitsListParams { + o.SetCidEmpty(cidEmpty) + return o +} + +// SetCidEmpty adds the cidEmpty to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidEmpty(cidEmpty *string) { + o.CidEmpty = cidEmpty +} + // WithCidIc adds the cidIc to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithCidIc(cidIc *string) *CircuitsCircuitsListParams { o.SetCidIc(cidIc) @@ -758,6 +775,17 @@ func (o *CircuitsCircuitsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsCircuitsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithDescriptionIc(descriptionIc *string) *CircuitsCircuitsListParams { o.SetDescriptionIc(descriptionIc) @@ -1564,6 +1592,23 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.CidEmpty != nil { + + // query param cid__empty + var qrCidEmpty string + + if o.CidEmpty != nil { + qrCidEmpty = *o.CidEmpty + } + qCidEmpty := qrCidEmpty + if qCidEmpty != "" { + + if err := r.SetQueryParam("cid__empty", qCidEmpty); err != nil { + return err + } + } + } + if o.CidIc != nil { // query param cid__ic @@ -2040,6 +2085,23 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic diff --git a/netbox/client/circuits/circuits_provider_networks_list_parameters.go b/netbox/client/circuits/circuits_provider_networks_list_parameters.go index a5e055d9..0cbb901d 100644 --- a/netbox/client/circuits/circuits_provider_networks_list_parameters.go +++ b/netbox/client/circuits/circuits_provider_networks_list_parameters.go @@ -98,6 +98,9 @@ type CircuitsProviderNetworksListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type CircuitsProviderNetworksListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -227,6 +233,9 @@ type CircuitsProviderNetworksListParams struct { // ServiceID. ServiceID *string + // ServiceIDEmpty. + ServiceIDEmpty *string + // ServiceIDIc. ServiceIDIc *string @@ -390,6 +399,17 @@ func (o *CircuitsProviderNetworksListParams) SetDescription(description *string) o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsProviderNetworksListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the circuits provider networks list params func (o *CircuitsProviderNetworksListParams) WithDescriptionIc(descriptionIc *string) *CircuitsProviderNetworksListParams { o.SetDescriptionIc(descriptionIc) @@ -643,6 +663,17 @@ func (o *CircuitsProviderNetworksListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithNameEmpty(nameEmpty *string) *CircuitsProviderNetworksListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the circuits provider networks list params func (o *CircuitsProviderNetworksListParams) WithNameIc(nameIc *string) *CircuitsProviderNetworksListParams { o.SetNameIc(nameIc) @@ -830,6 +861,17 @@ func (o *CircuitsProviderNetworksListParams) SetServiceID(serviceID *string) { o.ServiceID = serviceID } +// WithServiceIDEmpty adds the serviceIDEmpty to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDEmpty(serviceIDEmpty *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDEmpty(serviceIDEmpty) + return o +} + +// SetServiceIDEmpty adds the serviceIdEmpty to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDEmpty(serviceIDEmpty *string) { + o.ServiceIDEmpty = serviceIDEmpty +} + // WithServiceIDIc adds the serviceIDIc to the circuits provider networks list params func (o *CircuitsProviderNetworksListParams) WithServiceIDIc(serviceIDIc *string) *CircuitsProviderNetworksListParams { o.SetServiceIDIc(serviceIDIc) @@ -1078,6 +1120,23 @@ func (o *CircuitsProviderNetworksListParams) WriteToRequest(r runtime.ClientRequ } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1469,6 +1528,23 @@ func (o *CircuitsProviderNetworksListParams) WriteToRequest(r runtime.ClientRequ } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1758,6 +1834,23 @@ func (o *CircuitsProviderNetworksListParams) WriteToRequest(r runtime.ClientRequ } } + if o.ServiceIDEmpty != nil { + + // query param service_id__empty + var qrServiceIDEmpty string + + if o.ServiceIDEmpty != nil { + qrServiceIDEmpty = *o.ServiceIDEmpty + } + qServiceIDEmpty := qrServiceIDEmpty + if qServiceIDEmpty != "" { + + if err := r.SetQueryParam("service_id__empty", qServiceIDEmpty); err != nil { + return err + } + } + } + if o.ServiceIDIc != nil { // query param service_id__ic diff --git a/netbox/client/circuits/circuits_providers_list_parameters.go b/netbox/client/circuits/circuits_providers_list_parameters.go index 7271cc69..8f04cb98 100644 --- a/netbox/client/circuits/circuits_providers_list_parameters.go +++ b/netbox/client/circuits/circuits_providers_list_parameters.go @@ -80,6 +80,9 @@ type CircuitsProvidersListParams struct { // Account. Account *string + // AccountEmpty. + AccountEmpty *string + // AccountIc. AccountIc *string @@ -107,24 +110,6 @@ type CircuitsProvidersListParams struct { // AccountNisw. AccountNisw *string - // Asn. - Asn *string - - // AsnGt. - AsnGt *string - - // AsnGte. - AsnGte *string - - // AsnLt. - AsnLt *string - - // AsnLte. - AsnLte *string - - // Asnn. - Asnn *string - // AsnID. AsnID *string @@ -212,6 +197,9 @@ type CircuitsProvidersListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -293,6 +281,9 @@ type CircuitsProvidersListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -390,6 +381,17 @@ func (o *CircuitsProvidersListParams) SetAccount(account *string) { o.Account = account } +// WithAccountEmpty adds the accountEmpty to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountEmpty(accountEmpty *string) *CircuitsProvidersListParams { + o.SetAccountEmpty(accountEmpty) + return o +} + +// SetAccountEmpty adds the accountEmpty to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountEmpty(accountEmpty *string) { + o.AccountEmpty = accountEmpty +} + // WithAccountIc adds the accountIc to the circuits providers list params func (o *CircuitsProvidersListParams) WithAccountIc(accountIc *string) *CircuitsProvidersListParams { o.SetAccountIc(accountIc) @@ -489,72 +491,6 @@ func (o *CircuitsProvidersListParams) SetAccountNisw(accountNisw *string) { o.AccountNisw = accountNisw } -// WithAsn adds the asn to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAsn(asn *string) *CircuitsProvidersListParams { - o.SetAsn(asn) - return o -} - -// SetAsn adds the asn to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAsn(asn *string) { - o.Asn = asn -} - -// WithAsnGt adds the asnGt to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAsnGt(asnGt *string) *CircuitsProvidersListParams { - o.SetAsnGt(asnGt) - return o -} - -// SetAsnGt adds the asnGt to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAsnGt(asnGt *string) { - o.AsnGt = asnGt -} - -// WithAsnGte adds the asnGte to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAsnGte(asnGte *string) *CircuitsProvidersListParams { - o.SetAsnGte(asnGte) - return o -} - -// SetAsnGte adds the asnGte to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAsnGte(asnGte *string) { - o.AsnGte = asnGte -} - -// WithAsnLt adds the asnLt to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAsnLt(asnLt *string) *CircuitsProvidersListParams { - o.SetAsnLt(asnLt) - return o -} - -// SetAsnLt adds the asnLt to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAsnLt(asnLt *string) { - o.AsnLt = asnLt -} - -// WithAsnLte adds the asnLte to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAsnLte(asnLte *string) *CircuitsProvidersListParams { - o.SetAsnLte(asnLte) - return o -} - -// SetAsnLte adds the asnLte to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAsnLte(asnLte *string) { - o.AsnLte = asnLte -} - -// WithAsnn adds the asnn to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAsnn(asnn *string) *CircuitsProvidersListParams { - o.SetAsnn(asnn) - return o -} - -// SetAsnn adds the asnN to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAsnn(asnn *string) { - o.Asnn = asnn -} - // WithAsnID adds the asnID to the circuits providers list params func (o *CircuitsProvidersListParams) WithAsnID(asnID *string) *CircuitsProvidersListParams { o.SetAsnID(asnID) @@ -863,6 +799,17 @@ func (o *CircuitsProvidersListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameEmpty(nameEmpty *string) *CircuitsProvidersListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the circuits providers list params func (o *CircuitsProvidersListParams) WithNameIc(nameIc *string) *CircuitsProvidersListParams { o.SetNameIc(nameIc) @@ -1138,6 +1085,17 @@ func (o *CircuitsProvidersListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugEmpty(slugEmpty *string) *CircuitsProvidersListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the circuits providers list params func (o *CircuitsProvidersListParams) WithSlugIc(slugIc *string) *CircuitsProvidersListParams { o.SetSlugIc(slugIc) @@ -1284,6 +1242,23 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.AccountEmpty != nil { + + // query param account__empty + var qrAccountEmpty string + + if o.AccountEmpty != nil { + qrAccountEmpty = *o.AccountEmpty + } + qAccountEmpty := qrAccountEmpty + if qAccountEmpty != "" { + + if err := r.SetQueryParam("account__empty", qAccountEmpty); err != nil { + return err + } + } + } + if o.AccountIc != nil { // query param account__ic @@ -1437,108 +1412,6 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.Asn != nil { - - // query param asn - var qrAsn string - - if o.Asn != nil { - qrAsn = *o.Asn - } - qAsn := qrAsn - if qAsn != "" { - - if err := r.SetQueryParam("asn", qAsn); err != nil { - return err - } - } - } - - if o.AsnGt != nil { - - // query param asn__gt - var qrAsnGt string - - if o.AsnGt != nil { - qrAsnGt = *o.AsnGt - } - qAsnGt := qrAsnGt - if qAsnGt != "" { - - if err := r.SetQueryParam("asn__gt", qAsnGt); err != nil { - return err - } - } - } - - if o.AsnGte != nil { - - // query param asn__gte - var qrAsnGte string - - if o.AsnGte != nil { - qrAsnGte = *o.AsnGte - } - qAsnGte := qrAsnGte - if qAsnGte != "" { - - if err := r.SetQueryParam("asn__gte", qAsnGte); err != nil { - return err - } - } - } - - if o.AsnLt != nil { - - // query param asn__lt - var qrAsnLt string - - if o.AsnLt != nil { - qrAsnLt = *o.AsnLt - } - qAsnLt := qrAsnLt - if qAsnLt != "" { - - if err := r.SetQueryParam("asn__lt", qAsnLt); err != nil { - return err - } - } - } - - if o.AsnLte != nil { - - // query param asn__lte - var qrAsnLte string - - if o.AsnLte != nil { - qrAsnLte = *o.AsnLte - } - qAsnLte := qrAsnLte - if qAsnLte != "" { - - if err := r.SetQueryParam("asn__lte", qAsnLte); err != nil { - return err - } - } - } - - if o.Asnn != nil { - - // query param asn__n - var qrAsnn string - - if o.Asnn != nil { - qrAsnn = *o.Asnn - } - qAsnn := qrAsnn - if qAsnn != "" { - - if err := r.SetQueryParam("asn__n", qAsnn); err != nil { - return err - } - } - } - if o.AsnID != nil { // query param asn_id @@ -2015,6 +1888,23 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2440,6 +2330,23 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_cables_list_parameters.go b/netbox/client/dcim/dcim_cables_list_parameters.go index bdbd01d4..94ae9abf 100644 --- a/netbox/client/dcim/dcim_cables_list_parameters.go +++ b/netbox/client/dcim/dcim_cables_list_parameters.go @@ -128,6 +128,9 @@ type DcimCablesListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -275,21 +278,6 @@ type DcimCablesListParams struct { // TerminationaID. TerminationaID *string - // TerminationaIDGt. - TerminationaIDGt *string - - // TerminationaIDGte. - TerminationaIDGte *string - - // TerminationaIDLt. - TerminationaIDLt *string - - // TerminationaIDLte. - TerminationaIDLte *string - - // TerminationaIDn. - TerminationaIDn *string - // TerminationaType. TerminationaType *string @@ -299,21 +287,6 @@ type DcimCablesListParams struct { // TerminationbID. TerminationbID *string - // TerminationbIDGt. - TerminationbIDGt *string - - // TerminationbIDGte. - TerminationbIDGte *string - - // TerminationbIDLt. - TerminationbIDLt *string - - // TerminationbIDLte. - TerminationbIDLte *string - - // TerminationbIDn. - TerminationbIDn *string - // TerminationbType. TerminationbType *string @@ -566,6 +539,17 @@ func (o *DcimCablesListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim cables list params +func (o *DcimCablesListParams) WithLabelEmpty(labelEmpty *string) *DcimCablesListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim cables list params +func (o *DcimCablesListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim cables list params func (o *DcimCablesListParams) WithLabelIc(labelIc *string) *DcimCablesListParams { o.SetLabelIc(labelIc) @@ -1072,61 +1056,6 @@ func (o *DcimCablesListParams) SetTerminationaID(terminationaID *string) { o.TerminationaID = terminationaID } -// WithTerminationaIDGt adds the terminationaIDGt to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationaIDGt(terminationaIDGt *string) *DcimCablesListParams { - o.SetTerminationaIDGt(terminationaIDGt) - return o -} - -// SetTerminationaIDGt adds the terminationAIdGt to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationaIDGt(terminationaIDGt *string) { - o.TerminationaIDGt = terminationaIDGt -} - -// WithTerminationaIDGte adds the terminationaIDGte to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationaIDGte(terminationaIDGte *string) *DcimCablesListParams { - o.SetTerminationaIDGte(terminationaIDGte) - return o -} - -// SetTerminationaIDGte adds the terminationAIdGte to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationaIDGte(terminationaIDGte *string) { - o.TerminationaIDGte = terminationaIDGte -} - -// WithTerminationaIDLt adds the terminationaIDLt to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationaIDLt(terminationaIDLt *string) *DcimCablesListParams { - o.SetTerminationaIDLt(terminationaIDLt) - return o -} - -// SetTerminationaIDLt adds the terminationAIdLt to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationaIDLt(terminationaIDLt *string) { - o.TerminationaIDLt = terminationaIDLt -} - -// WithTerminationaIDLte adds the terminationaIDLte to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationaIDLte(terminationaIDLte *string) *DcimCablesListParams { - o.SetTerminationaIDLte(terminationaIDLte) - return o -} - -// SetTerminationaIDLte adds the terminationAIdLte to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationaIDLte(terminationaIDLte *string) { - o.TerminationaIDLte = terminationaIDLte -} - -// WithTerminationaIDn adds the terminationaIDn to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationaIDn(terminationaIDn *string) *DcimCablesListParams { - o.SetTerminationaIDn(terminationaIDn) - return o -} - -// SetTerminationaIDn adds the terminationAIdN to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationaIDn(terminationaIDn *string) { - o.TerminationaIDn = terminationaIDn -} - // WithTerminationaType adds the terminationaType to the dcim cables list params func (o *DcimCablesListParams) WithTerminationaType(terminationaType *string) *DcimCablesListParams { o.SetTerminationaType(terminationaType) @@ -1160,61 +1089,6 @@ func (o *DcimCablesListParams) SetTerminationbID(terminationbID *string) { o.TerminationbID = terminationbID } -// WithTerminationbIDGt adds the terminationbIDGt to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationbIDGt(terminationbIDGt *string) *DcimCablesListParams { - o.SetTerminationbIDGt(terminationbIDGt) - return o -} - -// SetTerminationbIDGt adds the terminationBIdGt to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationbIDGt(terminationbIDGt *string) { - o.TerminationbIDGt = terminationbIDGt -} - -// WithTerminationbIDGte adds the terminationbIDGte to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationbIDGte(terminationbIDGte *string) *DcimCablesListParams { - o.SetTerminationbIDGte(terminationbIDGte) - return o -} - -// SetTerminationbIDGte adds the terminationBIdGte to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationbIDGte(terminationbIDGte *string) { - o.TerminationbIDGte = terminationbIDGte -} - -// WithTerminationbIDLt adds the terminationbIDLt to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationbIDLt(terminationbIDLt *string) *DcimCablesListParams { - o.SetTerminationbIDLt(terminationbIDLt) - return o -} - -// SetTerminationbIDLt adds the terminationBIdLt to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationbIDLt(terminationbIDLt *string) { - o.TerminationbIDLt = terminationbIDLt -} - -// WithTerminationbIDLte adds the terminationbIDLte to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationbIDLte(terminationbIDLte *string) *DcimCablesListParams { - o.SetTerminationbIDLte(terminationbIDLte) - return o -} - -// SetTerminationbIDLte adds the terminationBIdLte to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationbIDLte(terminationbIDLte *string) { - o.TerminationbIDLte = terminationbIDLte -} - -// WithTerminationbIDn adds the terminationbIDn to the dcim cables list params -func (o *DcimCablesListParams) WithTerminationbIDn(terminationbIDn *string) *DcimCablesListParams { - o.SetTerminationbIDn(terminationbIDn) - return o -} - -// SetTerminationbIDn adds the terminationBIdN to the dcim cables list params -func (o *DcimCablesListParams) SetTerminationbIDn(terminationbIDn *string) { - o.TerminationbIDn = terminationbIDn -} - // WithTerminationbType adds the terminationbType to the dcim cables list params func (o *DcimCablesListParams) WithTerminationbType(terminationbType *string) *DcimCablesListParams { o.SetTerminationbType(terminationbType) @@ -1556,6 +1430,23 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2338,91 +2229,6 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.TerminationaIDGt != nil { - - // query param termination_a_id__gt - var qrTerminationaIDGt string - - if o.TerminationaIDGt != nil { - qrTerminationaIDGt = *o.TerminationaIDGt - } - qTerminationaIDGt := qrTerminationaIDGt - if qTerminationaIDGt != "" { - - if err := r.SetQueryParam("termination_a_id__gt", qTerminationaIDGt); err != nil { - return err - } - } - } - - if o.TerminationaIDGte != nil { - - // query param termination_a_id__gte - var qrTerminationaIDGte string - - if o.TerminationaIDGte != nil { - qrTerminationaIDGte = *o.TerminationaIDGte - } - qTerminationaIDGte := qrTerminationaIDGte - if qTerminationaIDGte != "" { - - if err := r.SetQueryParam("termination_a_id__gte", qTerminationaIDGte); err != nil { - return err - } - } - } - - if o.TerminationaIDLt != nil { - - // query param termination_a_id__lt - var qrTerminationaIDLt string - - if o.TerminationaIDLt != nil { - qrTerminationaIDLt = *o.TerminationaIDLt - } - qTerminationaIDLt := qrTerminationaIDLt - if qTerminationaIDLt != "" { - - if err := r.SetQueryParam("termination_a_id__lt", qTerminationaIDLt); err != nil { - return err - } - } - } - - if o.TerminationaIDLte != nil { - - // query param termination_a_id__lte - var qrTerminationaIDLte string - - if o.TerminationaIDLte != nil { - qrTerminationaIDLte = *o.TerminationaIDLte - } - qTerminationaIDLte := qrTerminationaIDLte - if qTerminationaIDLte != "" { - - if err := r.SetQueryParam("termination_a_id__lte", qTerminationaIDLte); err != nil { - return err - } - } - } - - if o.TerminationaIDn != nil { - - // query param termination_a_id__n - var qrTerminationaIDn string - - if o.TerminationaIDn != nil { - qrTerminationaIDn = *o.TerminationaIDn - } - qTerminationaIDn := qrTerminationaIDn - if qTerminationaIDn != "" { - - if err := r.SetQueryParam("termination_a_id__n", qTerminationaIDn); err != nil { - return err - } - } - } - if o.TerminationaType != nil { // query param termination_a_type @@ -2474,91 +2280,6 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.TerminationbIDGt != nil { - - // query param termination_b_id__gt - var qrTerminationbIDGt string - - if o.TerminationbIDGt != nil { - qrTerminationbIDGt = *o.TerminationbIDGt - } - qTerminationbIDGt := qrTerminationbIDGt - if qTerminationbIDGt != "" { - - if err := r.SetQueryParam("termination_b_id__gt", qTerminationbIDGt); err != nil { - return err - } - } - } - - if o.TerminationbIDGte != nil { - - // query param termination_b_id__gte - var qrTerminationbIDGte string - - if o.TerminationbIDGte != nil { - qrTerminationbIDGte = *o.TerminationbIDGte - } - qTerminationbIDGte := qrTerminationbIDGte - if qTerminationbIDGte != "" { - - if err := r.SetQueryParam("termination_b_id__gte", qTerminationbIDGte); err != nil { - return err - } - } - } - - if o.TerminationbIDLt != nil { - - // query param termination_b_id__lt - var qrTerminationbIDLt string - - if o.TerminationbIDLt != nil { - qrTerminationbIDLt = *o.TerminationbIDLt - } - qTerminationbIDLt := qrTerminationbIDLt - if qTerminationbIDLt != "" { - - if err := r.SetQueryParam("termination_b_id__lt", qTerminationbIDLt); err != nil { - return err - } - } - } - - if o.TerminationbIDLte != nil { - - // query param termination_b_id__lte - var qrTerminationbIDLte string - - if o.TerminationbIDLte != nil { - qrTerminationbIDLte = *o.TerminationbIDLte - } - qTerminationbIDLte := qrTerminationbIDLte - if qTerminationbIDLte != "" { - - if err := r.SetQueryParam("termination_b_id__lte", qTerminationbIDLte); err != nil { - return err - } - } - } - - if o.TerminationbIDn != nil { - - // query param termination_b_id__n - var qrTerminationbIDn string - - if o.TerminationbIDn != nil { - qrTerminationbIDn = *o.TerminationbIDn - } - qTerminationbIDn := qrTerminationbIDn - if qTerminationbIDn != "" { - - if err := r.SetQueryParam("termination_b_id__n", qTerminationbIDn); err != nil { - return err - } - } - } - if o.TerminationbType != nil { // query param termination_b_type diff --git a/netbox/client/dcim/dcim_client.go b/netbox/client/dcim/dcim_client.go index b47073bb..ef80bf77 100644 --- a/netbox/client/dcim/dcim_client.go +++ b/netbox/client/dcim/dcim_client.go @@ -787,6 +787,24 @@ type ClientService interface { DcimVirtualChassisUpdate(params *DcimVirtualChassisUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisUpdateOK, error) + DcimVirtualDeviceContextsBulkDelete(params *DcimVirtualDeviceContextsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsBulkDeleteNoContent, error) + + DcimVirtualDeviceContextsBulkPartialUpdate(params *DcimVirtualDeviceContextsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsBulkPartialUpdateOK, error) + + DcimVirtualDeviceContextsBulkUpdate(params *DcimVirtualDeviceContextsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsBulkUpdateOK, error) + + DcimVirtualDeviceContextsCreate(params *DcimVirtualDeviceContextsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsCreateCreated, error) + + DcimVirtualDeviceContextsDelete(params *DcimVirtualDeviceContextsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsDeleteNoContent, error) + + DcimVirtualDeviceContextsList(params *DcimVirtualDeviceContextsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsListOK, error) + + DcimVirtualDeviceContextsPartialUpdate(params *DcimVirtualDeviceContextsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsPartialUpdateOK, error) + + DcimVirtualDeviceContextsRead(params *DcimVirtualDeviceContextsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsReadOK, error) + + DcimVirtualDeviceContextsUpdate(params *DcimVirtualDeviceContextsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsUpdateOK, error) + SetTransport(transport runtime.ClientTransport) } @@ -15265,6 +15283,357 @@ func (a *Client) DcimVirtualChassisUpdate(params *DcimVirtualChassisUpdateParams panic(msg) } +/* +DcimVirtualDeviceContextsBulkDelete dcim virtual device contexts bulk delete API +*/ +func (a *Client) DcimVirtualDeviceContextsBulkDelete(params *DcimVirtualDeviceContextsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_bulk_delete", + Method: "DELETE", + PathPattern: "/dcim/virtual-device-contexts/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsBulkPartialUpdate dcim virtual device contexts bulk partial update API +*/ +func (a *Client) DcimVirtualDeviceContextsBulkPartialUpdate(params *DcimVirtualDeviceContextsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/virtual-device-contexts/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsBulkUpdate dcim virtual device contexts bulk update API +*/ +func (a *Client) DcimVirtualDeviceContextsBulkUpdate(params *DcimVirtualDeviceContextsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_bulk_update", + Method: "PUT", + PathPattern: "/dcim/virtual-device-contexts/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsCreate dcim virtual device contexts create API +*/ +func (a *Client) DcimVirtualDeviceContextsCreate(params *DcimVirtualDeviceContextsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_create", + Method: "POST", + PathPattern: "/dcim/virtual-device-contexts/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsDelete dcim virtual device contexts delete API +*/ +func (a *Client) DcimVirtualDeviceContextsDelete(params *DcimVirtualDeviceContextsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_delete", + Method: "DELETE", + PathPattern: "/dcim/virtual-device-contexts/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsList dcim virtual device contexts list API +*/ +func (a *Client) DcimVirtualDeviceContextsList(params *DcimVirtualDeviceContextsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_list", + Method: "GET", + PathPattern: "/dcim/virtual-device-contexts/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsPartialUpdate dcim virtual device contexts partial update API +*/ +func (a *Client) DcimVirtualDeviceContextsPartialUpdate(params *DcimVirtualDeviceContextsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_partial_update", + Method: "PATCH", + PathPattern: "/dcim/virtual-device-contexts/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsRead dcim virtual device contexts read API +*/ +func (a *Client) DcimVirtualDeviceContextsRead(params *DcimVirtualDeviceContextsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsReadParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_read", + Method: "GET", + PathPattern: "/dcim/virtual-device-contexts/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DcimVirtualDeviceContextsUpdate dcim virtual device contexts update API +*/ +func (a *Client) DcimVirtualDeviceContextsUpdate(params *DcimVirtualDeviceContextsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualDeviceContextsUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimVirtualDeviceContextsUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_virtual-device-contexts_update", + Method: "PUT", + PathPattern: "/dcim/virtual-device-contexts/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimVirtualDeviceContextsUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimVirtualDeviceContextsUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_virtual-device-contexts_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + // SetTransport changes the transport on the client func (a *Client) SetTransport(transport runtime.ClientTransport) { a.transport = transport diff --git a/netbox/client/dcim/dcim_console_port_templates_list_parameters.go b/netbox/client/dcim/dcim_console_port_templates_list_parameters.go index e64b497f..9d2e3c3d 100644 --- a/netbox/client/dcim/dcim_console_port_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_console_port_templates_list_parameters.go @@ -152,6 +152,9 @@ type DcimConsolePortTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -517,6 +520,17 @@ func (o *DcimConsolePortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimConsolePortTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim console port templates list params func (o *DcimConsolePortTemplatesListParams) WithNameIc(nameIc *string) *DcimConsolePortTemplatesListParams { o.SetNameIc(nameIc) @@ -1087,6 +1101,23 @@ func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_console_ports_list_parameters.go b/netbox/client/dcim/dcim_console_ports_list_parameters.go index 54dd73d6..75637229 100644 --- a/netbox/client/dcim/dcim_console_ports_list_parameters.go +++ b/netbox/client/dcim/dcim_console_ports_list_parameters.go @@ -110,6 +110,9 @@ type DcimConsolePortsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type DcimConsolePortsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -242,6 +248,9 @@ type DcimConsolePortsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -533,6 +542,17 @@ func (o *DcimConsolePortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimConsolePortsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim console ports list params func (o *DcimConsolePortsListParams) WithDescriptionIc(descriptionIc *string) *DcimConsolePortsListParams { o.SetDescriptionIc(descriptionIc) @@ -753,6 +773,17 @@ func (o *DcimConsolePortsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithLabelEmpty(labelEmpty *string) *DcimConsolePortsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim console ports list params func (o *DcimConsolePortsListParams) WithLabelIc(labelIc *string) *DcimConsolePortsListParams { o.SetLabelIc(labelIc) @@ -1006,6 +1037,17 @@ func (o *DcimConsolePortsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameEmpty(nameEmpty *string) *DcimConsolePortsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim console ports list params func (o *DcimConsolePortsListParams) WithNameIc(nameIc *string) *DcimConsolePortsListParams { o.SetNameIc(nameIc) @@ -1608,6 +1650,23 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1948,6 +2007,23 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2339,6 +2415,23 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go b/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go index 2259fd9f..17a9c656 100644 --- a/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go @@ -152,6 +152,9 @@ type DcimConsoleServerPortTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -517,6 +520,17 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim console server port templates list params func (o *DcimConsoleServerPortTemplatesListParams) WithNameIc(nameIc *string) *DcimConsoleServerPortTemplatesListParams { o.SetNameIc(nameIc) @@ -1087,6 +1101,23 @@ func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.Clie } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_console_server_ports_list_parameters.go b/netbox/client/dcim/dcim_console_server_ports_list_parameters.go index 764615cc..c37e39bb 100644 --- a/netbox/client/dcim/dcim_console_server_ports_list_parameters.go +++ b/netbox/client/dcim/dcim_console_server_ports_list_parameters.go @@ -110,6 +110,9 @@ type DcimConsoleServerPortsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type DcimConsoleServerPortsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -242,6 +248,9 @@ type DcimConsoleServerPortsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -533,6 +542,17 @@ func (o *DcimConsoleServerPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimConsoleServerPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -753,6 +773,17 @@ func (o *DcimConsoleServerPortsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimConsoleServerPortsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithLabelIc(labelIc *string) *DcimConsoleServerPortsListParams { o.SetLabelIc(labelIc) @@ -1006,6 +1037,17 @@ func (o *DcimConsoleServerPortsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameEmpty(nameEmpty *string) *DcimConsoleServerPortsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithNameIc(nameIc *string) *DcimConsoleServerPortsListParams { o.SetNameIc(nameIc) @@ -1608,6 +1650,23 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1948,6 +2007,23 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2339,6 +2415,23 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go b/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go index eea970f8..a5df4819 100644 --- a/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go @@ -146,6 +146,9 @@ type DcimDeviceBayTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -483,6 +486,17 @@ func (o *DcimDeviceBayTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceBayTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim device bay templates list params func (o *DcimDeviceBayTemplatesListParams) WithNameIc(nameIc *string) *DcimDeviceBayTemplatesListParams { o.SetNameIc(nameIc) @@ -997,6 +1011,23 @@ func (o *DcimDeviceBayTemplatesListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_device_bays_list_parameters.go b/netbox/client/dcim/dcim_device_bays_list_parameters.go index c14c53fc..e8bc6578 100644 --- a/netbox/client/dcim/dcim_device_bays_list_parameters.go +++ b/netbox/client/dcim/dcim_device_bays_list_parameters.go @@ -98,6 +98,9 @@ type DcimDeviceBaysListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -158,6 +161,9 @@ type DcimDeviceBaysListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -224,6 +230,9 @@ type DcimDeviceBaysListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -462,6 +471,17 @@ func (o *DcimDeviceBaysListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimDeviceBaysListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithDescriptionIc(descriptionIc *string) *DcimDeviceBaysListParams { o.SetDescriptionIc(descriptionIc) @@ -682,6 +702,17 @@ func (o *DcimDeviceBaysListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithLabelEmpty(labelEmpty *string) *DcimDeviceBaysListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithLabelIc(labelIc *string) *DcimDeviceBaysListParams { o.SetLabelIc(labelIc) @@ -913,6 +944,17 @@ func (o *DcimDeviceBaysListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceBaysListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithNameIc(nameIc *string) *DcimDeviceBaysListParams { o.SetNameIc(nameIc) @@ -1414,6 +1456,23 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1754,6 +1813,23 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2111,6 +2187,23 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_device_roles_list_parameters.go b/netbox/client/dcim/dcim_device_roles_list_parameters.go index a8f81604..3f0a1c66 100644 --- a/netbox/client/dcim/dcim_device_roles_list_parameters.go +++ b/netbox/client/dcim/dcim_device_roles_list_parameters.go @@ -80,6 +80,9 @@ type DcimDeviceRolesListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -128,6 +131,9 @@ type DcimDeviceRolesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -200,6 +206,9 @@ type DcimDeviceRolesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -245,6 +254,9 @@ type DcimDeviceRolesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -345,6 +357,17 @@ func (o *DcimDeviceRolesListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorEmpty(colorEmpty *string) *DcimDeviceRolesListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithColorIc(colorIc *string) *DcimDeviceRolesListParams { o.SetColorIc(colorIc) @@ -521,6 +544,17 @@ func (o *DcimDeviceRolesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimDeviceRolesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithDescriptionIc(descriptionIc *string) *DcimDeviceRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -774,6 +808,17 @@ func (o *DcimDeviceRolesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceRolesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithNameIc(nameIc *string) *DcimDeviceRolesListParams { o.SetNameIc(nameIc) @@ -917,6 +962,17 @@ func (o *DcimDeviceRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimDeviceRolesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithSlugIc(slugIc *string) *DcimDeviceRolesListParams { o.SetSlugIc(slugIc) @@ -1074,6 +1130,23 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1346,6 +1419,23 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1737,6 +1827,23 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1958,6 +2065,23 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_device_types_list_parameters.go b/netbox/client/dcim/dcim_device_types_list_parameters.go index 393ef0e0..37b693ae 100644 --- a/netbox/client/dcim/dcim_device_types_list_parameters.go +++ b/netbox/client/dcim/dcim_device_types_list_parameters.go @@ -182,6 +182,9 @@ type DcimDeviceTypesListParams struct { // Model. Model *string + // ModelEmpty. + ModelEmpty *string + // ModelIc. ModelIc *string @@ -227,6 +230,9 @@ type DcimDeviceTypesListParams struct { // PartNumber. PartNumber *string + // PartNumberEmpty. + PartNumberEmpty *string + // PartNumberIc. PartNumberIc *string @@ -269,6 +275,9 @@ type DcimDeviceTypesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -326,6 +335,30 @@ type DcimDeviceTypesListParams struct { // UHeightn. UHeightn *string + // Weight. + Weight *string + + // WeightGt. + WeightGt *string + + // WeightGte. + WeightGte *string + + // WeightLt. + WeightLt *string + + // WeightLte. + WeightLte *string + + // Weightn. + Weightn *string + + // WeightUnit. + WeightUnit *string + + // WeightUnitn. + WeightUnitn *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -753,6 +786,17 @@ func (o *DcimDeviceTypesListParams) SetModel(model *string) { o.Model = model } +// WithModelEmpty adds the modelEmpty to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelEmpty(modelEmpty *string) *DcimDeviceTypesListParams { + o.SetModelEmpty(modelEmpty) + return o +} + +// SetModelEmpty adds the modelEmpty to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelEmpty(modelEmpty *string) { + o.ModelEmpty = modelEmpty +} + // WithModelIc adds the modelIc to the dcim device types list params func (o *DcimDeviceTypesListParams) WithModelIc(modelIc *string) *DcimDeviceTypesListParams { o.SetModelIc(modelIc) @@ -896,6 +940,17 @@ func (o *DcimDeviceTypesListParams) SetPartNumber(partNumber *string) { o.PartNumber = partNumber } +// WithPartNumberEmpty adds the partNumberEmpty to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberEmpty(partNumberEmpty *string) *DcimDeviceTypesListParams { + o.SetPartNumberEmpty(partNumberEmpty) + return o +} + +// SetPartNumberEmpty adds the partNumberEmpty to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberEmpty(partNumberEmpty *string) { + o.PartNumberEmpty = partNumberEmpty +} + // WithPartNumberIc adds the partNumberIc to the dcim device types list params func (o *DcimDeviceTypesListParams) WithPartNumberIc(partNumberIc *string) *DcimDeviceTypesListParams { o.SetPartNumberIc(partNumberIc) @@ -1050,6 +1105,17 @@ func (o *DcimDeviceTypesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugEmpty(slugEmpty *string) *DcimDeviceTypesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim device types list params func (o *DcimDeviceTypesListParams) WithSlugIc(slugIc *string) *DcimDeviceTypesListParams { o.SetSlugIc(slugIc) @@ -1259,6 +1325,94 @@ func (o *DcimDeviceTypesListParams) SetUHeightn(uHeightn *string) { o.UHeightn = uHeightn } +// WithWeight adds the weight to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeight(weight *string) *DcimDeviceTypesListParams { + o.SetWeight(weight) + return o +} + +// SetWeight adds the weight to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeight(weight *string) { + o.Weight = weight +} + +// WithWeightGt adds the weightGt to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightGt(weightGt *string) *DcimDeviceTypesListParams { + o.SetWeightGt(weightGt) + return o +} + +// SetWeightGt adds the weightGt to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightGt(weightGt *string) { + o.WeightGt = weightGt +} + +// WithWeightGte adds the weightGte to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightGte(weightGte *string) *DcimDeviceTypesListParams { + o.SetWeightGte(weightGte) + return o +} + +// SetWeightGte adds the weightGte to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightGte(weightGte *string) { + o.WeightGte = weightGte +} + +// WithWeightLt adds the weightLt to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightLt(weightLt *string) *DcimDeviceTypesListParams { + o.SetWeightLt(weightLt) + return o +} + +// SetWeightLt adds the weightLt to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightLt(weightLt *string) { + o.WeightLt = weightLt +} + +// WithWeightLte adds the weightLte to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightLte(weightLte *string) *DcimDeviceTypesListParams { + o.SetWeightLte(weightLte) + return o +} + +// SetWeightLte adds the weightLte to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightLte(weightLte *string) { + o.WeightLte = weightLte +} + +// WithWeightn adds the weightn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightn(weightn *string) *DcimDeviceTypesListParams { + o.SetWeightn(weightn) + return o +} + +// SetWeightn adds the weightN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightn(weightn *string) { + o.Weightn = weightn +} + +// WithWeightUnit adds the weightUnit to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightUnit(weightUnit *string) *DcimDeviceTypesListParams { + o.SetWeightUnit(weightUnit) + return o +} + +// SetWeightUnit adds the weightUnit to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightUnit(weightUnit *string) { + o.WeightUnit = weightUnit +} + +// WithWeightUnitn adds the weightUnitn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithWeightUnitn(weightUnitn *string) *DcimDeviceTypesListParams { + o.SetWeightUnitn(weightUnitn) + return o +} + +// SetWeightUnitn adds the weightUnitN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetWeightUnitn(weightUnitn *string) { + o.WeightUnitn = weightUnitn +} + // WriteToRequest writes these params to a swagger request func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -1845,6 +1999,23 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.ModelEmpty != nil { + + // query param model__empty + var qrModelEmpty string + + if o.ModelEmpty != nil { + qrModelEmpty = *o.ModelEmpty + } + qModelEmpty := qrModelEmpty + if qModelEmpty != "" { + + if err := r.SetQueryParam("model__empty", qModelEmpty); err != nil { + return err + } + } + } + if o.ModelIc != nil { // query param model__ic @@ -2066,6 +2237,23 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.PartNumberEmpty != nil { + + // query param part_number__empty + var qrPartNumberEmpty string + + if o.PartNumberEmpty != nil { + qrPartNumberEmpty = *o.PartNumberEmpty + } + qPartNumberEmpty := qrPartNumberEmpty + if qPartNumberEmpty != "" { + + if err := r.SetQueryParam("part_number__empty", qPartNumberEmpty); err != nil { + return err + } + } + } + if o.PartNumberIc != nil { // query param part_number__ic @@ -2304,6 +2492,23 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic @@ -2627,6 +2832,142 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.Weight != nil { + + // query param weight + var qrWeight string + + if o.Weight != nil { + qrWeight = *o.Weight + } + qWeight := qrWeight + if qWeight != "" { + + if err := r.SetQueryParam("weight", qWeight); err != nil { + return err + } + } + } + + if o.WeightGt != nil { + + // query param weight__gt + var qrWeightGt string + + if o.WeightGt != nil { + qrWeightGt = *o.WeightGt + } + qWeightGt := qrWeightGt + if qWeightGt != "" { + + if err := r.SetQueryParam("weight__gt", qWeightGt); err != nil { + return err + } + } + } + + if o.WeightGte != nil { + + // query param weight__gte + var qrWeightGte string + + if o.WeightGte != nil { + qrWeightGte = *o.WeightGte + } + qWeightGte := qrWeightGte + if qWeightGte != "" { + + if err := r.SetQueryParam("weight__gte", qWeightGte); err != nil { + return err + } + } + } + + if o.WeightLt != nil { + + // query param weight__lt + var qrWeightLt string + + if o.WeightLt != nil { + qrWeightLt = *o.WeightLt + } + qWeightLt := qrWeightLt + if qWeightLt != "" { + + if err := r.SetQueryParam("weight__lt", qWeightLt); err != nil { + return err + } + } + } + + if o.WeightLte != nil { + + // query param weight__lte + var qrWeightLte string + + if o.WeightLte != nil { + qrWeightLte = *o.WeightLte + } + qWeightLte := qrWeightLte + if qWeightLte != "" { + + if err := r.SetQueryParam("weight__lte", qWeightLte); err != nil { + return err + } + } + } + + if o.Weightn != nil { + + // query param weight__n + var qrWeightn string + + if o.Weightn != nil { + qrWeightn = *o.Weightn + } + qWeightn := qrWeightn + if qWeightn != "" { + + if err := r.SetQueryParam("weight__n", qWeightn); err != nil { + return err + } + } + } + + if o.WeightUnit != nil { + + // query param weight_unit + var qrWeightUnit string + + if o.WeightUnit != nil { + qrWeightUnit = *o.WeightUnit + } + qWeightUnit := qrWeightUnit + if qWeightUnit != "" { + + if err := r.SetQueryParam("weight_unit", qWeightUnit); err != nil { + return err + } + } + } + + if o.WeightUnitn != nil { + + // query param weight_unit__n + var qrWeightUnitn string + + if o.WeightUnitn != nil { + qrWeightUnitn = *o.WeightUnitn + } + qWeightUnitn := qrWeightUnitn + if qWeightUnitn != "" { + + if err := r.SetQueryParam("weight_unit__n", qWeightUnitn); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/netbox/client/dcim/dcim_devices_list_parameters.go b/netbox/client/dcim/dcim_devices_list_parameters.go index 1b26bc55..7ad2574a 100644 --- a/netbox/client/dcim/dcim_devices_list_parameters.go +++ b/netbox/client/dcim/dcim_devices_list_parameters.go @@ -86,6 +86,9 @@ type DcimDevicesListParams struct { // AssetTag. AssetTag *string + // AssetTagEmpty. + AssetTagEmpty *string + // AssetTagIc. AssetTagIc *string @@ -296,6 +299,9 @@ type DcimDevicesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -380,6 +386,18 @@ type DcimDevicesListParams struct { // PowerPorts. PowerPorts *string + // PrimaryIp4ID. + PrimaryIp4ID *string + + // PrimaryIp4IDn. + PrimaryIp4IDn *string + + // PrimaryIp6ID. + PrimaryIp6ID *string + + // PrimaryIp6IDn. + PrimaryIp6IDn *string + // Q. Q *string @@ -416,6 +434,9 @@ type DcimDevicesListParams struct { // Serial. Serial *string + // SerialEmpty. + SerialEmpty *string + // SerialIc. SerialIc *string @@ -634,6 +655,17 @@ func (o *DcimDevicesListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagEmpty adds the assetTagEmpty to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimDevicesListParams { + o.SetAssetTagEmpty(assetTagEmpty) + return o +} + +// SetAssetTagEmpty adds the assetTagEmpty to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagEmpty(assetTagEmpty *string) { + o.AssetTagEmpty = assetTagEmpty +} + // WithAssetTagIc adds the assetTagIc to the dcim devices list params func (o *DcimDevicesListParams) WithAssetTagIc(assetTagIc *string) *DcimDevicesListParams { o.SetAssetTagIc(assetTagIc) @@ -1393,6 +1425,17 @@ func (o *DcimDevicesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim devices list params +func (o *DcimDevicesListParams) WithNameEmpty(nameEmpty *string) *DcimDevicesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim devices list params +func (o *DcimDevicesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim devices list params func (o *DcimDevicesListParams) WithNameIc(nameIc *string) *DcimDevicesListParams { o.SetNameIc(nameIc) @@ -1679,6 +1722,50 @@ func (o *DcimDevicesListParams) SetPowerPorts(powerPorts *string) { o.PowerPorts = powerPorts } +// WithPrimaryIp4ID adds the primaryIp4ID to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp4ID(primaryIp4ID *string) *DcimDevicesListParams { + o.SetPrimaryIp4ID(primaryIp4ID) + return o +} + +// SetPrimaryIp4ID adds the primaryIp4Id to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp4ID(primaryIp4ID *string) { + o.PrimaryIp4ID = primaryIp4ID +} + +// WithPrimaryIp4IDn adds the primaryIp4IDn to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp4IDn(primaryIp4IDn *string) *DcimDevicesListParams { + o.SetPrimaryIp4IDn(primaryIp4IDn) + return o +} + +// SetPrimaryIp4IDn adds the primaryIp4IdN to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp4IDn(primaryIp4IDn *string) { + o.PrimaryIp4IDn = primaryIp4IDn +} + +// WithPrimaryIp6ID adds the primaryIp6ID to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp6ID(primaryIp6ID *string) *DcimDevicesListParams { + o.SetPrimaryIp6ID(primaryIp6ID) + return o +} + +// SetPrimaryIp6ID adds the primaryIp6Id to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp6ID(primaryIp6ID *string) { + o.PrimaryIp6ID = primaryIp6ID +} + +// WithPrimaryIp6IDn adds the primaryIp6IDn to the dcim devices list params +func (o *DcimDevicesListParams) WithPrimaryIp6IDn(primaryIp6IDn *string) *DcimDevicesListParams { + o.SetPrimaryIp6IDn(primaryIp6IDn) + return o +} + +// SetPrimaryIp6IDn adds the primaryIp6IdN to the dcim devices list params +func (o *DcimDevicesListParams) SetPrimaryIp6IDn(primaryIp6IDn *string) { + o.PrimaryIp6IDn = primaryIp6IDn +} + // WithQ adds the q to the dcim devices list params func (o *DcimDevicesListParams) WithQ(q *string) *DcimDevicesListParams { o.SetQ(q) @@ -1811,6 +1898,17 @@ func (o *DcimDevicesListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialEmpty adds the serialEmpty to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialEmpty(serialEmpty *string) *DcimDevicesListParams { + o.SetSerialEmpty(serialEmpty) + return o +} + +// SetSerialEmpty adds the serialEmpty to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialEmpty(serialEmpty *string) { + o.SerialEmpty = serialEmpty +} + // WithSerialIc adds the serialIc to the dcim devices list params func (o *DcimDevicesListParams) WithSerialIc(serialIc *string) *DcimDevicesListParams { o.SetSerialIc(serialIc) @@ -2354,6 +2452,23 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.AssetTagEmpty != nil { + + // query param asset_tag__empty + var qrAssetTagEmpty string + + if o.AssetTagEmpty != nil { + qrAssetTagEmpty = *o.AssetTagEmpty + } + qAssetTagEmpty := qrAssetTagEmpty + if qAssetTagEmpty != "" { + + if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { + return err + } + } + } + if o.AssetTagIc != nil { // query param asset_tag__ic @@ -3527,6 +3642,23 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -3969,6 +4101,74 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.PrimaryIp4ID != nil { + + // query param primary_ip4_id + var qrPrimaryIp4ID string + + if o.PrimaryIp4ID != nil { + qrPrimaryIp4ID = *o.PrimaryIp4ID + } + qPrimaryIp4ID := qrPrimaryIp4ID + if qPrimaryIp4ID != "" { + + if err := r.SetQueryParam("primary_ip4_id", qPrimaryIp4ID); err != nil { + return err + } + } + } + + if o.PrimaryIp4IDn != nil { + + // query param primary_ip4_id__n + var qrPrimaryIp4IDn string + + if o.PrimaryIp4IDn != nil { + qrPrimaryIp4IDn = *o.PrimaryIp4IDn + } + qPrimaryIp4IDn := qrPrimaryIp4IDn + if qPrimaryIp4IDn != "" { + + if err := r.SetQueryParam("primary_ip4_id__n", qPrimaryIp4IDn); err != nil { + return err + } + } + } + + if o.PrimaryIp6ID != nil { + + // query param primary_ip6_id + var qrPrimaryIp6ID string + + if o.PrimaryIp6ID != nil { + qrPrimaryIp6ID = *o.PrimaryIp6ID + } + qPrimaryIp6ID := qrPrimaryIp6ID + if qPrimaryIp6ID != "" { + + if err := r.SetQueryParam("primary_ip6_id", qPrimaryIp6ID); err != nil { + return err + } + } + } + + if o.PrimaryIp6IDn != nil { + + // query param primary_ip6_id__n + var qrPrimaryIp6IDn string + + if o.PrimaryIp6IDn != nil { + qrPrimaryIp6IDn = *o.PrimaryIp6IDn + } + qPrimaryIp6IDn := qrPrimaryIp6IDn + if qPrimaryIp6IDn != "" { + + if err := r.SetQueryParam("primary_ip6_id__n", qPrimaryIp6IDn); err != nil { + return err + } + } + } + if o.Q != nil { // query param q @@ -4173,6 +4373,23 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.SerialEmpty != nil { + + // query param serial__empty + var qrSerialEmpty string + + if o.SerialEmpty != nil { + qrSerialEmpty = *o.SerialEmpty + } + qSerialEmpty := qrSerialEmpty + if qSerialEmpty != "" { + + if err := r.SetQueryParam("serial__empty", qSerialEmpty); err != nil { + return err + } + } + } + if o.SerialIc != nil { // query param serial__ic diff --git a/netbox/client/dcim/dcim_front_port_templates_list_parameters.go b/netbox/client/dcim/dcim_front_port_templates_list_parameters.go index 1407694d..14866a2c 100644 --- a/netbox/client/dcim/dcim_front_port_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_front_port_templates_list_parameters.go @@ -80,6 +80,9 @@ type DcimFrontPortTemplatesListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -182,6 +185,9 @@ type DcimFrontPortTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -294,6 +300,17 @@ func (o *DcimFrontPortTemplatesListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithColorEmpty(colorEmpty *string) *DcimFrontPortTemplatesListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithColorIc(colorIc *string) *DcimFrontPortTemplatesListParams { o.SetColorIc(colorIc) @@ -657,6 +674,17 @@ func (o *DcimFrontPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimFrontPortTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithNameIc(nameIc *string) *DcimFrontPortTemplatesListParams { o.SetNameIc(nameIc) @@ -836,6 +864,23 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1397,6 +1442,23 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_front_ports_list_parameters.go b/netbox/client/dcim/dcim_front_ports_list_parameters.go index c1239a87..9ab40bb0 100644 --- a/netbox/client/dcim/dcim_front_ports_list_parameters.go +++ b/netbox/client/dcim/dcim_front_ports_list_parameters.go @@ -89,6 +89,9 @@ type DcimFrontPortsListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -137,6 +140,9 @@ type DcimFrontPortsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -197,6 +203,9 @@ type DcimFrontPortsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -269,6 +278,9 @@ type DcimFrontPortsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -483,6 +495,17 @@ func (o *DcimFrontPortsListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithColorEmpty(colorEmpty *string) *DcimFrontPortsListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithColorIc(colorIc *string) *DcimFrontPortsListParams { o.SetColorIc(colorIc) @@ -659,6 +682,17 @@ func (o *DcimFrontPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimFrontPortsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimFrontPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -879,6 +913,17 @@ func (o *DcimFrontPortsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimFrontPortsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithLabelIc(labelIc *string) *DcimFrontPortsListParams { o.SetLabelIc(labelIc) @@ -1132,6 +1177,17 @@ func (o *DcimFrontPortsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameEmpty(nameEmpty *string) *DcimFrontPortsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithNameIc(nameIc *string) *DcimFrontPortsListParams { o.SetNameIc(nameIc) @@ -1615,6 +1671,23 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1887,6 +1960,23 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2227,6 +2317,23 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2618,6 +2725,23 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_interface_templates_list_parameters.go b/netbox/client/dcim/dcim_interface_templates_list_parameters.go index b5eeb52a..dbdd4561 100644 --- a/netbox/client/dcim/dcim_interface_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_interface_templates_list_parameters.go @@ -155,6 +155,9 @@ type DcimInterfaceTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -543,6 +546,17 @@ func (o *DcimInterfaceTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimInterfaceTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim interface templates list params func (o *DcimInterfaceTemplatesListParams) WithNameIc(nameIc *string) *DcimInterfaceTemplatesListParams { o.SetNameIc(nameIc) @@ -1174,6 +1188,23 @@ func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_interfaces_list_parameters.go b/netbox/client/dcim/dcim_interfaces_list_parameters.go index 452981bc..fa1a98b7 100644 --- a/netbox/client/dcim/dcim_interfaces_list_parameters.go +++ b/netbox/client/dcim/dcim_interfaces_list_parameters.go @@ -116,6 +116,9 @@ type DcimInterfacesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -179,9 +182,24 @@ type DcimInterfacesListParams struct { // Kind. Kind *string + // L2vpn. + L2vpn *string + + // L2vpnn. + L2vpnn *string + + // L2vpnID. + L2vpnID *string + + // L2vpnIDn. + L2vpnIDn *string + // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -317,6 +335,9 @@ type DcimInterfacesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -524,6 +545,24 @@ type DcimInterfacesListParams struct { // Typen. Typen *string + // Vdc. + Vdc *string + + // Vdcn. + Vdcn *string + + // VdcID. + VdcID *string + + // VdcIDn. + VdcIDn *string + + // VdcIdentifier. + VdcIdentifier *string + + // VdcIdentifiern. + VdcIdentifiern *string + // VirtualChassis. VirtualChassis *string @@ -780,6 +819,17 @@ func (o *DcimInterfacesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimInterfacesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim interfaces list params func (o *DcimInterfacesListParams) WithDescriptionIc(descriptionIc *string) *DcimInterfacesListParams { o.SetDescriptionIc(descriptionIc) @@ -1011,6 +1061,50 @@ func (o *DcimInterfacesListParams) SetKind(kind *string) { o.Kind = kind } +// WithL2vpn adds the l2vpn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpn(l2vpn *string) *DcimInterfacesListParams { + o.SetL2vpn(l2vpn) + return o +} + +// SetL2vpn adds the l2vpn to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpn(l2vpn *string) { + o.L2vpn = l2vpn +} + +// WithL2vpnn adds the l2vpnn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpnn(l2vpnn *string) *DcimInterfacesListParams { + o.SetL2vpnn(l2vpnn) + return o +} + +// SetL2vpnn adds the l2vpnN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpnn(l2vpnn *string) { + o.L2vpnn = l2vpnn +} + +// WithL2vpnID adds the l2vpnID to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpnID(l2vpnID *string) *DcimInterfacesListParams { + o.SetL2vpnID(l2vpnID) + return o +} + +// SetL2vpnID adds the l2vpnId to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpnID(l2vpnID *string) { + o.L2vpnID = l2vpnID +} + +// WithL2vpnIDn adds the l2vpnIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithL2vpnIDn(l2vpnIDn *string) *DcimInterfacesListParams { + o.SetL2vpnIDn(l2vpnIDn) + return o +} + +// SetL2vpnIDn adds the l2vpnIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetL2vpnIDn(l2vpnIDn *string) { + o.L2vpnIDn = l2vpnIDn +} + // WithLabel adds the label to the dcim interfaces list params func (o *DcimInterfacesListParams) WithLabel(label *string) *DcimInterfacesListParams { o.SetLabel(label) @@ -1022,6 +1116,17 @@ func (o *DcimInterfacesListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithLabelEmpty(labelEmpty *string) *DcimInterfacesListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim interfaces list params func (o *DcimInterfacesListParams) WithLabelIc(labelIc *string) *DcimInterfacesListParams { o.SetLabelIc(labelIc) @@ -1506,6 +1611,17 @@ func (o *DcimInterfacesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameEmpty(nameEmpty *string) *DcimInterfacesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim interfaces list params func (o *DcimInterfacesListParams) WithNameIc(nameIc *string) *DcimInterfacesListParams { o.SetNameIc(nameIc) @@ -2243,6 +2359,72 @@ func (o *DcimInterfacesListParams) SetTypen(typen *string) { o.Typen = typen } +// WithVdc adds the vdc to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVdc(vdc *string) *DcimInterfacesListParams { + o.SetVdc(vdc) + return o +} + +// SetVdc adds the vdc to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVdc(vdc *string) { + o.Vdc = vdc +} + +// WithVdcn adds the vdcn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVdcn(vdcn *string) *DcimInterfacesListParams { + o.SetVdcn(vdcn) + return o +} + +// SetVdcn adds the vdcN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVdcn(vdcn *string) { + o.Vdcn = vdcn +} + +// WithVdcID adds the vdcID to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVdcID(vdcID *string) *DcimInterfacesListParams { + o.SetVdcID(vdcID) + return o +} + +// SetVdcID adds the vdcId to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVdcID(vdcID *string) { + o.VdcID = vdcID +} + +// WithVdcIDn adds the vdcIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVdcIDn(vdcIDn *string) *DcimInterfacesListParams { + o.SetVdcIDn(vdcIDn) + return o +} + +// SetVdcIDn adds the vdcIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVdcIDn(vdcIDn *string) { + o.VdcIDn = vdcIDn +} + +// WithVdcIdentifier adds the vdcIdentifier to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVdcIdentifier(vdcIdentifier *string) *DcimInterfacesListParams { + o.SetVdcIdentifier(vdcIdentifier) + return o +} + +// SetVdcIdentifier adds the vdcIdentifier to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVdcIdentifier(vdcIdentifier *string) { + o.VdcIdentifier = vdcIdentifier +} + +// WithVdcIdentifiern adds the vdcIdentifiern to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVdcIdentifiern(vdcIdentifiern *string) *DcimInterfacesListParams { + o.SetVdcIdentifiern(vdcIdentifiern) + return o +} + +// SetVdcIdentifiern adds the vdcIdentifierN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVdcIdentifiern(vdcIdentifiern *string) { + o.VdcIdentifiern = vdcIdentifiern +} + // WithVirtualChassis adds the virtualChassis to the dcim interfaces list params func (o *DcimInterfacesListParams) WithVirtualChassis(virtualChassis *string) *DcimInterfacesListParams { o.SetVirtualChassis(virtualChassis) @@ -2692,6 +2874,23 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -3049,6 +3248,74 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.L2vpn != nil { + + // query param l2vpn + var qrL2vpn string + + if o.L2vpn != nil { + qrL2vpn = *o.L2vpn + } + qL2vpn := qrL2vpn + if qL2vpn != "" { + + if err := r.SetQueryParam("l2vpn", qL2vpn); err != nil { + return err + } + } + } + + if o.L2vpnn != nil { + + // query param l2vpn__n + var qrL2vpnn string + + if o.L2vpnn != nil { + qrL2vpnn = *o.L2vpnn + } + qL2vpnn := qrL2vpnn + if qL2vpnn != "" { + + if err := r.SetQueryParam("l2vpn__n", qL2vpnn); err != nil { + return err + } + } + } + + if o.L2vpnID != nil { + + // query param l2vpn_id + var qrL2vpnID string + + if o.L2vpnID != nil { + qrL2vpnID = *o.L2vpnID + } + qL2vpnID := qrL2vpnID + if qL2vpnID != "" { + + if err := r.SetQueryParam("l2vpn_id", qL2vpnID); err != nil { + return err + } + } + } + + if o.L2vpnIDn != nil { + + // query param l2vpn_id__n + var qrL2vpnIDn string + + if o.L2vpnIDn != nil { + qrL2vpnIDn = *o.L2vpnIDn + } + qL2vpnIDn := qrL2vpnIDn + if qL2vpnIDn != "" { + + if err := r.SetQueryParam("l2vpn_id__n", qL2vpnIDn); err != nil { + return err + } + } + } + if o.Label != nil { // query param label @@ -3066,6 +3333,23 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -3814,6 +4098,23 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -4953,6 +5254,108 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.Vdc != nil { + + // query param vdc + var qrVdc string + + if o.Vdc != nil { + qrVdc = *o.Vdc + } + qVdc := qrVdc + if qVdc != "" { + + if err := r.SetQueryParam("vdc", qVdc); err != nil { + return err + } + } + } + + if o.Vdcn != nil { + + // query param vdc__n + var qrVdcn string + + if o.Vdcn != nil { + qrVdcn = *o.Vdcn + } + qVdcn := qrVdcn + if qVdcn != "" { + + if err := r.SetQueryParam("vdc__n", qVdcn); err != nil { + return err + } + } + } + + if o.VdcID != nil { + + // query param vdc_id + var qrVdcID string + + if o.VdcID != nil { + qrVdcID = *o.VdcID + } + qVdcID := qrVdcID + if qVdcID != "" { + + if err := r.SetQueryParam("vdc_id", qVdcID); err != nil { + return err + } + } + } + + if o.VdcIDn != nil { + + // query param vdc_id__n + var qrVdcIDn string + + if o.VdcIDn != nil { + qrVdcIDn = *o.VdcIDn + } + qVdcIDn := qrVdcIDn + if qVdcIDn != "" { + + if err := r.SetQueryParam("vdc_id__n", qVdcIDn); err != nil { + return err + } + } + } + + if o.VdcIdentifier != nil { + + // query param vdc_identifier + var qrVdcIdentifier string + + if o.VdcIdentifier != nil { + qrVdcIdentifier = *o.VdcIdentifier + } + qVdcIdentifier := qrVdcIdentifier + if qVdcIdentifier != "" { + + if err := r.SetQueryParam("vdc_identifier", qVdcIdentifier); err != nil { + return err + } + } + } + + if o.VdcIdentifiern != nil { + + // query param vdc_identifier__n + var qrVdcIdentifiern string + + if o.VdcIdentifiern != nil { + qrVdcIdentifiern = *o.VdcIdentifiern + } + qVdcIdentifiern := qrVdcIdentifiern + if qVdcIdentifiern != "" { + + if err := r.SetQueryParam("vdc_identifier__n", qVdcIdentifiern); err != nil { + return err + } + } + } + if o.VirtualChassis != nil { // query param virtual_chassis diff --git a/netbox/client/dcim/dcim_inventory_item_roles_list_parameters.go b/netbox/client/dcim/dcim_inventory_item_roles_list_parameters.go index e2248973..1c8104de 100644 --- a/netbox/client/dcim/dcim_inventory_item_roles_list_parameters.go +++ b/netbox/client/dcim/dcim_inventory_item_roles_list_parameters.go @@ -80,6 +80,9 @@ type DcimInventoryItemRolesListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -170,6 +173,9 @@ type DcimInventoryItemRolesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -215,6 +221,9 @@ type DcimInventoryItemRolesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -312,6 +321,17 @@ func (o *DcimInventoryItemRolesListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim inventory item roles list params +func (o *DcimInventoryItemRolesListParams) WithColorEmpty(colorEmpty *string) *DcimInventoryItemRolesListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim inventory item roles list params +func (o *DcimInventoryItemRolesListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim inventory item roles list params func (o *DcimInventoryItemRolesListParams) WithColorIc(colorIc *string) *DcimInventoryItemRolesListParams { o.SetColorIc(colorIc) @@ -631,6 +651,17 @@ func (o *DcimInventoryItemRolesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim inventory item roles list params +func (o *DcimInventoryItemRolesListParams) WithNameEmpty(nameEmpty *string) *DcimInventoryItemRolesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim inventory item roles list params +func (o *DcimInventoryItemRolesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim inventory item roles list params func (o *DcimInventoryItemRolesListParams) WithNameIc(nameIc *string) *DcimInventoryItemRolesListParams { o.SetNameIc(nameIc) @@ -774,6 +805,17 @@ func (o *DcimInventoryItemRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim inventory item roles list params +func (o *DcimInventoryItemRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimInventoryItemRolesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim inventory item roles list params +func (o *DcimInventoryItemRolesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim inventory item roles list params func (o *DcimInventoryItemRolesListParams) WithSlugIc(slugIc *string) *DcimInventoryItemRolesListParams { o.SetSlugIc(slugIc) @@ -920,6 +962,23 @@ func (o *DcimInventoryItemRolesListParams) WriteToRequest(r runtime.ClientReques } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1413,6 +1472,23 @@ func (o *DcimInventoryItemRolesListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1634,6 +1710,23 @@ func (o *DcimInventoryItemRolesListParams) WriteToRequest(r runtime.ClientReques } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_inventory_item_templates_list_parameters.go b/netbox/client/dcim/dcim_inventory_item_templates_list_parameters.go index 3e81d529..ab089b35 100644 --- a/netbox/client/dcim/dcim_inventory_item_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_inventory_item_templates_list_parameters.go @@ -146,6 +146,9 @@ type DcimInventoryItemTemplatesListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -212,6 +215,9 @@ type DcimInventoryItemTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -260,6 +266,9 @@ type DcimInventoryItemTemplatesListParams struct { // PartID. PartID *string + // PartIDEmpty. + PartIDEmpty *string + // PartIDIc. PartIDIc *string @@ -608,6 +617,17 @@ func (o *DcimInventoryItemTemplatesListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim inventory item templates list params +func (o *DcimInventoryItemTemplatesListParams) WithLabelEmpty(labelEmpty *string) *DcimInventoryItemTemplatesListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim inventory item templates list params +func (o *DcimInventoryItemTemplatesListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim inventory item templates list params func (o *DcimInventoryItemTemplatesListParams) WithLabelIc(labelIc *string) *DcimInventoryItemTemplatesListParams { o.SetLabelIc(labelIc) @@ -839,6 +859,17 @@ func (o *DcimInventoryItemTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim inventory item templates list params +func (o *DcimInventoryItemTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimInventoryItemTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim inventory item templates list params +func (o *DcimInventoryItemTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim inventory item templates list params func (o *DcimInventoryItemTemplatesListParams) WithNameIc(nameIc *string) *DcimInventoryItemTemplatesListParams { o.SetNameIc(nameIc) @@ -993,6 +1024,17 @@ func (o *DcimInventoryItemTemplatesListParams) SetPartID(partID *string) { o.PartID = partID } +// WithPartIDEmpty adds the partIDEmpty to the dcim inventory item templates list params +func (o *DcimInventoryItemTemplatesListParams) WithPartIDEmpty(partIDEmpty *string) *DcimInventoryItemTemplatesListParams { + o.SetPartIDEmpty(partIDEmpty) + return o +} + +// SetPartIDEmpty adds the partIdEmpty to the dcim inventory item templates list params +func (o *DcimInventoryItemTemplatesListParams) SetPartIDEmpty(partIDEmpty *string) { + o.PartIDEmpty = partIDEmpty +} + // WithPartIDIc adds the partIDIc to the dcim inventory item templates list params func (o *DcimInventoryItemTemplatesListParams) WithPartIDIc(partIDIc *string) *DcimInventoryItemTemplatesListParams { o.SetPartIDIc(partIDIc) @@ -1546,6 +1588,23 @@ func (o *DcimInventoryItemTemplatesListParams) WriteToRequest(r runtime.ClientRe } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -1903,6 +1962,23 @@ func (o *DcimInventoryItemTemplatesListParams) WriteToRequest(r runtime.ClientRe } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2141,6 +2217,23 @@ func (o *DcimInventoryItemTemplatesListParams) WriteToRequest(r runtime.ClientRe } } + if o.PartIDEmpty != nil { + + // query param part_id__empty + var qrPartIDEmpty string + + if o.PartIDEmpty != nil { + qrPartIDEmpty = *o.PartIDEmpty + } + qPartIDEmpty := qrPartIDEmpty + if qPartIDEmpty != "" { + + if err := r.SetQueryParam("part_id__empty", qPartIDEmpty); err != nil { + return err + } + } + } + if o.PartIDIc != nil { // query param part_id__ic diff --git a/netbox/client/dcim/dcim_inventory_items_list_parameters.go b/netbox/client/dcim/dcim_inventory_items_list_parameters.go index 8db12a1f..ebd8b4f5 100644 --- a/netbox/client/dcim/dcim_inventory_items_list_parameters.go +++ b/netbox/client/dcim/dcim_inventory_items_list_parameters.go @@ -80,6 +80,9 @@ type DcimInventoryItemsListParams struct { // AssetTag. AssetTag *string + // AssetTagEmpty. + AssetTagEmpty *string + // AssetTagIc. AssetTagIc *string @@ -185,6 +188,9 @@ type DcimInventoryItemsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -263,6 +269,9 @@ type DcimInventoryItemsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -311,6 +320,9 @@ type DcimInventoryItemsListParams struct { // PartID. PartID *string + // PartIDEmpty. + PartIDEmpty *string + // PartIDIc. PartIDIc *string @@ -380,6 +392,9 @@ type DcimInventoryItemsListParams struct { // Serial. Serial *string + // SerialEmpty. + SerialEmpty *string + // SerialIc. SerialIc *string @@ -513,6 +528,17 @@ func (o *DcimInventoryItemsListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagEmpty adds the assetTagEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimInventoryItemsListParams { + o.SetAssetTagEmpty(assetTagEmpty) + return o +} + +// SetAssetTagEmpty adds the assetTagEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagEmpty(assetTagEmpty *string) { + o.AssetTagEmpty = assetTagEmpty +} + // WithAssetTagIc adds the assetTagIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithAssetTagIc(assetTagIc *string) *DcimInventoryItemsListParams { o.SetAssetTagIc(assetTagIc) @@ -898,6 +924,17 @@ func (o *DcimInventoryItemsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithLabelEmpty(labelEmpty *string) *DcimInventoryItemsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithLabelIc(labelIc *string) *DcimInventoryItemsListParams { o.SetLabelIc(labelIc) @@ -1173,6 +1210,17 @@ func (o *DcimInventoryItemsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameEmpty(nameEmpty *string) *DcimInventoryItemsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithNameIc(nameIc *string) *DcimInventoryItemsListParams { o.SetNameIc(nameIc) @@ -1327,6 +1375,17 @@ func (o *DcimInventoryItemsListParams) SetPartID(partID *string) { o.PartID = partID } +// WithPartIDEmpty adds the partIDEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDEmpty(partIDEmpty *string) *DcimInventoryItemsListParams { + o.SetPartIDEmpty(partIDEmpty) + return o +} + +// SetPartIDEmpty adds the partIdEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDEmpty(partIDEmpty *string) { + o.PartIDEmpty = partIDEmpty +} + // WithPartIDIc adds the partIDIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithPartIDIc(partIDIc *string) *DcimInventoryItemsListParams { o.SetPartIDIc(partIDIc) @@ -1580,6 +1639,17 @@ func (o *DcimInventoryItemsListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialEmpty adds the serialEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialEmpty(serialEmpty *string) *DcimInventoryItemsListParams { + o.SetSerialEmpty(serialEmpty) + return o +} + +// SetSerialEmpty adds the serialEmpty to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialEmpty(serialEmpty *string) { + o.SerialEmpty = serialEmpty +} + // WithSerialIc adds the serialIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithSerialIc(serialIc *string) *DcimInventoryItemsListParams { o.SetSerialIc(serialIc) @@ -1858,6 +1928,23 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.AssetTagEmpty != nil { + + // query param asset_tag__empty + var qrAssetTagEmpty string + + if o.AssetTagEmpty != nil { + qrAssetTagEmpty = *o.AssetTagEmpty + } + qAssetTagEmpty := qrAssetTagEmpty + if qAssetTagEmpty != "" { + + if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { + return err + } + } + } + if o.AssetTagIc != nil { // query param asset_tag__ic @@ -2453,6 +2540,23 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2878,6 +2982,23 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -3116,6 +3237,23 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.PartIDEmpty != nil { + + // query param part_id__empty + var qrPartIDEmpty string + + if o.PartIDEmpty != nil { + qrPartIDEmpty = *o.PartIDEmpty + } + qPartIDEmpty := qrPartIDEmpty + if qPartIDEmpty != "" { + + if err := r.SetQueryParam("part_id__empty", qPartIDEmpty); err != nil { + return err + } + } + } + if o.PartIDIc != nil { // query param part_id__ic @@ -3507,6 +3645,23 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.SerialEmpty != nil { + + // query param serial__empty + var qrSerialEmpty string + + if o.SerialEmpty != nil { + qrSerialEmpty = *o.SerialEmpty + } + qSerialEmpty := qrSerialEmpty + if qSerialEmpty != "" { + + if err := r.SetQueryParam("serial__empty", qSerialEmpty); err != nil { + return err + } + } + } + if o.SerialIc != nil { // query param serial__ic diff --git a/netbox/client/dcim/dcim_locations_list_parameters.go b/netbox/client/dcim/dcim_locations_list_parameters.go index f3cb2146..6b91f9f8 100644 --- a/netbox/client/dcim/dcim_locations_list_parameters.go +++ b/netbox/client/dcim/dcim_locations_list_parameters.go @@ -116,6 +116,9 @@ type DcimLocationsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -188,6 +191,9 @@ type DcimLocationsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -281,6 +287,9 @@ type DcimLocationsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -540,6 +549,17 @@ func (o *DcimLocationsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim locations list params +func (o *DcimLocationsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimLocationsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim locations list params +func (o *DcimLocationsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim locations list params func (o *DcimLocationsListParams) WithDescriptionIc(descriptionIc *string) *DcimLocationsListParams { o.SetDescriptionIc(descriptionIc) @@ -793,6 +813,17 @@ func (o *DcimLocationsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim locations list params +func (o *DcimLocationsListParams) WithNameEmpty(nameEmpty *string) *DcimLocationsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim locations list params +func (o *DcimLocationsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim locations list params func (o *DcimLocationsListParams) WithNameIc(nameIc *string) *DcimLocationsListParams { o.SetNameIc(nameIc) @@ -1112,6 +1143,17 @@ func (o *DcimLocationsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim locations list params +func (o *DcimLocationsListParams) WithSlugEmpty(slugEmpty *string) *DcimLocationsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim locations list params +func (o *DcimLocationsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim locations list params func (o *DcimLocationsListParams) WithSlugIc(slugIc *string) *DcimLocationsListParams { o.SetSlugIc(slugIc) @@ -1572,6 +1614,23 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1963,6 +2022,23 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2456,6 +2532,23 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_manufacturers_list_parameters.go b/netbox/client/dcim/dcim_manufacturers_list_parameters.go index 0714c6c8..a9f4652f 100644 --- a/netbox/client/dcim/dcim_manufacturers_list_parameters.go +++ b/netbox/client/dcim/dcim_manufacturers_list_parameters.go @@ -116,6 +116,9 @@ type DcimManufacturersListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -188,6 +191,9 @@ type DcimManufacturersListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -233,6 +239,9 @@ type DcimManufacturersListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -462,6 +471,17 @@ func (o *DcimManufacturersListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimManufacturersListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithDescriptionIc(descriptionIc *string) *DcimManufacturersListParams { o.SetDescriptionIc(descriptionIc) @@ -715,6 +735,17 @@ func (o *DcimManufacturersListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameEmpty(nameEmpty *string) *DcimManufacturersListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithNameIc(nameIc *string) *DcimManufacturersListParams { o.SetNameIc(nameIc) @@ -858,6 +889,17 @@ func (o *DcimManufacturersListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugEmpty(slugEmpty *string) *DcimManufacturersListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithSlugIc(slugIc *string) *DcimManufacturersListParams { o.SetSlugIc(slugIc) @@ -1208,6 +1250,23 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1599,6 +1658,23 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1820,6 +1896,23 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_module_bay_templates_list_parameters.go b/netbox/client/dcim/dcim_module_bay_templates_list_parameters.go index 54de090e..607971b2 100644 --- a/netbox/client/dcim/dcim_module_bay_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_module_bay_templates_list_parameters.go @@ -146,6 +146,9 @@ type DcimModuleBayTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -483,6 +486,17 @@ func (o *DcimModuleBayTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim module bay templates list params +func (o *DcimModuleBayTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimModuleBayTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim module bay templates list params +func (o *DcimModuleBayTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim module bay templates list params func (o *DcimModuleBayTemplatesListParams) WithNameIc(nameIc *string) *DcimModuleBayTemplatesListParams { o.SetNameIc(nameIc) @@ -997,6 +1011,23 @@ func (o *DcimModuleBayTemplatesListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_module_bays_list_parameters.go b/netbox/client/dcim/dcim_module_bays_list_parameters.go index d00c203c..c70943fc 100644 --- a/netbox/client/dcim/dcim_module_bays_list_parameters.go +++ b/netbox/client/dcim/dcim_module_bays_list_parameters.go @@ -98,6 +98,9 @@ type DcimModuleBaysListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -158,6 +161,9 @@ type DcimModuleBaysListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -224,6 +230,9 @@ type DcimModuleBaysListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -462,6 +471,17 @@ func (o *DcimModuleBaysListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim module bays list params +func (o *DcimModuleBaysListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimModuleBaysListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim module bays list params +func (o *DcimModuleBaysListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim module bays list params func (o *DcimModuleBaysListParams) WithDescriptionIc(descriptionIc *string) *DcimModuleBaysListParams { o.SetDescriptionIc(descriptionIc) @@ -682,6 +702,17 @@ func (o *DcimModuleBaysListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim module bays list params +func (o *DcimModuleBaysListParams) WithLabelEmpty(labelEmpty *string) *DcimModuleBaysListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim module bays list params +func (o *DcimModuleBaysListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim module bays list params func (o *DcimModuleBaysListParams) WithLabelIc(labelIc *string) *DcimModuleBaysListParams { o.SetLabelIc(labelIc) @@ -913,6 +944,17 @@ func (o *DcimModuleBaysListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim module bays list params +func (o *DcimModuleBaysListParams) WithNameEmpty(nameEmpty *string) *DcimModuleBaysListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim module bays list params +func (o *DcimModuleBaysListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim module bays list params func (o *DcimModuleBaysListParams) WithNameIc(nameIc *string) *DcimModuleBaysListParams { o.SetNameIc(nameIc) @@ -1414,6 +1456,23 @@ func (o *DcimModuleBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1754,6 +1813,23 @@ func (o *DcimModuleBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2111,6 +2187,23 @@ func (o *DcimModuleBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_module_types_list_parameters.go b/netbox/client/dcim/dcim_module_types_list_parameters.go index 4a0c4c99..933e9fab 100644 --- a/netbox/client/dcim/dcim_module_types_list_parameters.go +++ b/netbox/client/dcim/dcim_module_types_list_parameters.go @@ -161,6 +161,9 @@ type DcimModuleTypesListParams struct { // Model. Model *string + // ModelEmpty. + ModelEmpty *string + // ModelIc. ModelIc *string @@ -203,6 +206,9 @@ type DcimModuleTypesListParams struct { // PartNumber. PartNumber *string + // PartNumberEmpty. + PartNumberEmpty *string + // PartNumberIc. PartNumberIc *string @@ -248,6 +254,30 @@ type DcimModuleTypesListParams struct { // Tagn. Tagn *string + // Weight. + Weight *string + + // WeightGt. + WeightGt *string + + // WeightGte. + WeightGte *string + + // WeightLt. + WeightLt *string + + // WeightLte. + WeightLte *string + + // Weightn. + Weightn *string + + // WeightUnit. + WeightUnit *string + + // WeightUnitn. + WeightUnitn *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -598,6 +628,17 @@ func (o *DcimModuleTypesListParams) SetModel(model *string) { o.Model = model } +// WithModelEmpty adds the modelEmpty to the dcim module types list params +func (o *DcimModuleTypesListParams) WithModelEmpty(modelEmpty *string) *DcimModuleTypesListParams { + o.SetModelEmpty(modelEmpty) + return o +} + +// SetModelEmpty adds the modelEmpty to the dcim module types list params +func (o *DcimModuleTypesListParams) SetModelEmpty(modelEmpty *string) { + o.ModelEmpty = modelEmpty +} + // WithModelIc adds the modelIc to the dcim module types list params func (o *DcimModuleTypesListParams) WithModelIc(modelIc *string) *DcimModuleTypesListParams { o.SetModelIc(modelIc) @@ -730,6 +771,17 @@ func (o *DcimModuleTypesListParams) SetPartNumber(partNumber *string) { o.PartNumber = partNumber } +// WithPartNumberEmpty adds the partNumberEmpty to the dcim module types list params +func (o *DcimModuleTypesListParams) WithPartNumberEmpty(partNumberEmpty *string) *DcimModuleTypesListParams { + o.SetPartNumberEmpty(partNumberEmpty) + return o +} + +// SetPartNumberEmpty adds the partNumberEmpty to the dcim module types list params +func (o *DcimModuleTypesListParams) SetPartNumberEmpty(partNumberEmpty *string) { + o.PartNumberEmpty = partNumberEmpty +} + // WithPartNumberIc adds the partNumberIc to the dcim module types list params func (o *DcimModuleTypesListParams) WithPartNumberIc(partNumberIc *string) *DcimModuleTypesListParams { o.SetPartNumberIc(partNumberIc) @@ -895,6 +947,94 @@ func (o *DcimModuleTypesListParams) SetTagn(tagn *string) { o.Tagn = tagn } +// WithWeight adds the weight to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeight(weight *string) *DcimModuleTypesListParams { + o.SetWeight(weight) + return o +} + +// SetWeight adds the weight to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeight(weight *string) { + o.Weight = weight +} + +// WithWeightGt adds the weightGt to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightGt(weightGt *string) *DcimModuleTypesListParams { + o.SetWeightGt(weightGt) + return o +} + +// SetWeightGt adds the weightGt to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightGt(weightGt *string) { + o.WeightGt = weightGt +} + +// WithWeightGte adds the weightGte to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightGte(weightGte *string) *DcimModuleTypesListParams { + o.SetWeightGte(weightGte) + return o +} + +// SetWeightGte adds the weightGte to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightGte(weightGte *string) { + o.WeightGte = weightGte +} + +// WithWeightLt adds the weightLt to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightLt(weightLt *string) *DcimModuleTypesListParams { + o.SetWeightLt(weightLt) + return o +} + +// SetWeightLt adds the weightLt to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightLt(weightLt *string) { + o.WeightLt = weightLt +} + +// WithWeightLte adds the weightLte to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightLte(weightLte *string) *DcimModuleTypesListParams { + o.SetWeightLte(weightLte) + return o +} + +// SetWeightLte adds the weightLte to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightLte(weightLte *string) { + o.WeightLte = weightLte +} + +// WithWeightn adds the weightn to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightn(weightn *string) *DcimModuleTypesListParams { + o.SetWeightn(weightn) + return o +} + +// SetWeightn adds the weightN to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightn(weightn *string) { + o.Weightn = weightn +} + +// WithWeightUnit adds the weightUnit to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightUnit(weightUnit *string) *DcimModuleTypesListParams { + o.SetWeightUnit(weightUnit) + return o +} + +// SetWeightUnit adds the weightUnit to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightUnit(weightUnit *string) { + o.WeightUnit = weightUnit +} + +// WithWeightUnitn adds the weightUnitn to the dcim module types list params +func (o *DcimModuleTypesListParams) WithWeightUnitn(weightUnitn *string) *DcimModuleTypesListParams { + o.SetWeightUnitn(weightUnitn) + return o +} + +// SetWeightUnitn adds the weightUnitN to the dcim module types list params +func (o *DcimModuleTypesListParams) SetWeightUnitn(weightUnitn *string) { + o.WeightUnitn = weightUnitn +} + // WriteToRequest writes these params to a swagger request func (o *DcimModuleTypesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -1362,6 +1502,23 @@ func (o *DcimModuleTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.ModelEmpty != nil { + + // query param model__empty + var qrModelEmpty string + + if o.ModelEmpty != nil { + qrModelEmpty = *o.ModelEmpty + } + qModelEmpty := qrModelEmpty + if qModelEmpty != "" { + + if err := r.SetQueryParam("model__empty", qModelEmpty); err != nil { + return err + } + } + } + if o.ModelIc != nil { // query param model__ic @@ -1566,6 +1723,23 @@ func (o *DcimModuleTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.PartNumberEmpty != nil { + + // query param part_number__empty + var qrPartNumberEmpty string + + if o.PartNumberEmpty != nil { + qrPartNumberEmpty = *o.PartNumberEmpty + } + qPartNumberEmpty := qrPartNumberEmpty + if qPartNumberEmpty != "" { + + if err := r.SetQueryParam("part_number__empty", qPartNumberEmpty); err != nil { + return err + } + } + } + if o.PartNumberIc != nil { // query param part_number__ic @@ -1821,6 +1995,142 @@ func (o *DcimModuleTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.Weight != nil { + + // query param weight + var qrWeight string + + if o.Weight != nil { + qrWeight = *o.Weight + } + qWeight := qrWeight + if qWeight != "" { + + if err := r.SetQueryParam("weight", qWeight); err != nil { + return err + } + } + } + + if o.WeightGt != nil { + + // query param weight__gt + var qrWeightGt string + + if o.WeightGt != nil { + qrWeightGt = *o.WeightGt + } + qWeightGt := qrWeightGt + if qWeightGt != "" { + + if err := r.SetQueryParam("weight__gt", qWeightGt); err != nil { + return err + } + } + } + + if o.WeightGte != nil { + + // query param weight__gte + var qrWeightGte string + + if o.WeightGte != nil { + qrWeightGte = *o.WeightGte + } + qWeightGte := qrWeightGte + if qWeightGte != "" { + + if err := r.SetQueryParam("weight__gte", qWeightGte); err != nil { + return err + } + } + } + + if o.WeightLt != nil { + + // query param weight__lt + var qrWeightLt string + + if o.WeightLt != nil { + qrWeightLt = *o.WeightLt + } + qWeightLt := qrWeightLt + if qWeightLt != "" { + + if err := r.SetQueryParam("weight__lt", qWeightLt); err != nil { + return err + } + } + } + + if o.WeightLte != nil { + + // query param weight__lte + var qrWeightLte string + + if o.WeightLte != nil { + qrWeightLte = *o.WeightLte + } + qWeightLte := qrWeightLte + if qWeightLte != "" { + + if err := r.SetQueryParam("weight__lte", qWeightLte); err != nil { + return err + } + } + } + + if o.Weightn != nil { + + // query param weight__n + var qrWeightn string + + if o.Weightn != nil { + qrWeightn = *o.Weightn + } + qWeightn := qrWeightn + if qWeightn != "" { + + if err := r.SetQueryParam("weight__n", qWeightn); err != nil { + return err + } + } + } + + if o.WeightUnit != nil { + + // query param weight_unit + var qrWeightUnit string + + if o.WeightUnit != nil { + qrWeightUnit = *o.WeightUnit + } + qWeightUnit := qrWeightUnit + if qWeightUnit != "" { + + if err := r.SetQueryParam("weight_unit", qWeightUnit); err != nil { + return err + } + } + } + + if o.WeightUnitn != nil { + + // query param weight_unit__n + var qrWeightUnitn string + + if o.WeightUnitn != nil { + qrWeightUnitn = *o.WeightUnitn + } + qWeightUnitn := qrWeightUnitn + if qWeightUnitn != "" { + + if err := r.SetQueryParam("weight_unit__n", qWeightUnitn); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/netbox/client/dcim/dcim_modules_list_parameters.go b/netbox/client/dcim/dcim_modules_list_parameters.go index 2b1218f4..459f6cf4 100644 --- a/netbox/client/dcim/dcim_modules_list_parameters.go +++ b/netbox/client/dcim/dcim_modules_list_parameters.go @@ -80,6 +80,9 @@ type DcimModulesListParams struct { // AssetTag. AssetTag *string + // AssetTagEmpty. + AssetTagEmpty *string + // AssetTagIc. AssetTagIc *string @@ -221,6 +224,9 @@ type DcimModulesListParams struct { // Serial. Serial *string + // SerialEmpty. + SerialEmpty *string + // SerialIc. SerialIc *string @@ -248,6 +254,12 @@ type DcimModulesListParams struct { // SerialNisw. SerialNisw *string + // Status. + Status *string + + // Statusn. + Statusn *string + // Tag. Tag *string @@ -318,6 +330,17 @@ func (o *DcimModulesListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagEmpty adds the assetTagEmpty to the dcim modules list params +func (o *DcimModulesListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimModulesListParams { + o.SetAssetTagEmpty(assetTagEmpty) + return o +} + +// SetAssetTagEmpty adds the assetTagEmpty to the dcim modules list params +func (o *DcimModulesListParams) SetAssetTagEmpty(assetTagEmpty *string) { + o.AssetTagEmpty = assetTagEmpty +} + // WithAssetTagIc adds the assetTagIc to the dcim modules list params func (o *DcimModulesListParams) WithAssetTagIc(assetTagIc *string) *DcimModulesListParams { o.SetAssetTagIc(assetTagIc) @@ -802,6 +825,17 @@ func (o *DcimModulesListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialEmpty adds the serialEmpty to the dcim modules list params +func (o *DcimModulesListParams) WithSerialEmpty(serialEmpty *string) *DcimModulesListParams { + o.SetSerialEmpty(serialEmpty) + return o +} + +// SetSerialEmpty adds the serialEmpty to the dcim modules list params +func (o *DcimModulesListParams) SetSerialEmpty(serialEmpty *string) { + o.SerialEmpty = serialEmpty +} + // WithSerialIc adds the serialIc to the dcim modules list params func (o *DcimModulesListParams) WithSerialIc(serialIc *string) *DcimModulesListParams { o.SetSerialIc(serialIc) @@ -901,6 +935,28 @@ func (o *DcimModulesListParams) SetSerialNisw(serialNisw *string) { o.SerialNisw = serialNisw } +// WithStatus adds the status to the dcim modules list params +func (o *DcimModulesListParams) WithStatus(status *string) *DcimModulesListParams { + o.SetStatus(status) + return o +} + +// SetStatus adds the status to the dcim modules list params +func (o *DcimModulesListParams) SetStatus(status *string) { + o.Status = status +} + +// WithStatusn adds the statusn to the dcim modules list params +func (o *DcimModulesListParams) WithStatusn(statusn *string) *DcimModulesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim modules list params +func (o *DcimModulesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the dcim modules list params func (o *DcimModulesListParams) WithTag(tag *string) *DcimModulesListParams { o.SetTag(tag) @@ -948,6 +1004,23 @@ func (o *DcimModulesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.AssetTagEmpty != nil { + + // query param asset_tag__empty + var qrAssetTagEmpty string + + if o.AssetTagEmpty != nil { + qrAssetTagEmpty = *o.AssetTagEmpty + } + qAssetTagEmpty := qrAssetTagEmpty + if qAssetTagEmpty != "" { + + if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { + return err + } + } + } + if o.AssetTagIc != nil { // query param asset_tag__ic @@ -1696,6 +1769,23 @@ func (o *DcimModulesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.SerialEmpty != nil { + + // query param serial__empty + var qrSerialEmpty string + + if o.SerialEmpty != nil { + qrSerialEmpty = *o.SerialEmpty + } + qSerialEmpty := qrSerialEmpty + if qSerialEmpty != "" { + + if err := r.SetQueryParam("serial__empty", qSerialEmpty); err != nil { + return err + } + } + } + if o.SerialIc != nil { // query param serial__ic @@ -1849,6 +1939,40 @@ func (o *DcimModulesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.Status != nil { + + // query param status + var qrStatus string + + if o.Status != nil { + qrStatus = *o.Status + } + qStatus := qrStatus + if qStatus != "" { + + if err := r.SetQueryParam("status", qStatus); err != nil { + return err + } + } + } + + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + } + if o.Tag != nil { // query param tag diff --git a/netbox/client/dcim/dcim_platforms_list_parameters.go b/netbox/client/dcim/dcim_platforms_list_parameters.go index 5b43cccd..8a377e60 100644 --- a/netbox/client/dcim/dcim_platforms_list_parameters.go +++ b/netbox/client/dcim/dcim_platforms_list_parameters.go @@ -98,6 +98,9 @@ type DcimPlatformsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -182,6 +185,9 @@ type DcimPlatformsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -212,6 +218,9 @@ type DcimPlatformsListParams struct { // NapalmDriver. NapalmDriver *string + // NapalmDriverEmpty. + NapalmDriverEmpty *string + // NapalmDriverIc. NapalmDriverIc *string @@ -257,6 +266,9 @@ type DcimPlatformsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -420,6 +432,17 @@ func (o *DcimPlatformsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPlatformsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithDescriptionIc(descriptionIc *string) *DcimPlatformsListParams { o.SetDescriptionIc(descriptionIc) @@ -717,6 +740,17 @@ func (o *DcimPlatformsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameEmpty(nameEmpty *string) *DcimPlatformsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithNameIc(nameIc *string) *DcimPlatformsListParams { o.SetNameIc(nameIc) @@ -827,6 +861,17 @@ func (o *DcimPlatformsListParams) SetNapalmDriver(napalmDriver *string) { o.NapalmDriver = napalmDriver } +// WithNapalmDriverEmpty adds the napalmDriverEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverEmpty(napalmDriverEmpty *string) *DcimPlatformsListParams { + o.SetNapalmDriverEmpty(napalmDriverEmpty) + return o +} + +// SetNapalmDriverEmpty adds the napalmDriverEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverEmpty(napalmDriverEmpty *string) { + o.NapalmDriverEmpty = napalmDriverEmpty +} + // WithNapalmDriverIc adds the napalmDriverIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithNapalmDriverIc(napalmDriverIc *string) *DcimPlatformsListParams { o.SetNapalmDriverIc(napalmDriverIc) @@ -970,6 +1015,17 @@ func (o *DcimPlatformsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugEmpty(slugEmpty *string) *DcimPlatformsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithSlugIc(slugIc *string) *DcimPlatformsListParams { o.SetSlugIc(slugIc) @@ -1218,6 +1274,23 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1677,6 +1750,23 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1847,6 +1937,23 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.NapalmDriverEmpty != nil { + + // query param napalm_driver__empty + var qrNapalmDriverEmpty string + + if o.NapalmDriverEmpty != nil { + qrNapalmDriverEmpty = *o.NapalmDriverEmpty + } + qNapalmDriverEmpty := qrNapalmDriverEmpty + if qNapalmDriverEmpty != "" { + + if err := r.SetQueryParam("napalm_driver__empty", qNapalmDriverEmpty); err != nil { + return err + } + } + } + if o.NapalmDriverIc != nil { // query param napalm_driver__ic @@ -2068,6 +2175,23 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_power_feeds_list_parameters.go b/netbox/client/dcim/dcim_power_feeds_list_parameters.go index 57295f0c..c72807c7 100644 --- a/netbox/client/dcim/dcim_power_feeds_list_parameters.go +++ b/netbox/client/dcim/dcim_power_feeds_list_parameters.go @@ -188,6 +188,9 @@ type DcimPowerFeedsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -778,6 +781,17 @@ func (o *DcimPowerFeedsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerFeedsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithNameIc(nameIc *string) *DcimPowerFeedsListParams { o.SetNameIc(nameIc) @@ -1893,6 +1907,23 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go b/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go index 28338e6d..79f00cbb 100644 --- a/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go @@ -158,6 +158,9 @@ type DcimPowerOutletTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -545,6 +548,17 @@ func (o *DcimPowerOutletTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimPowerOutletTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerOutletTemplatesListParams { o.SetNameIc(nameIc) @@ -1149,6 +1163,23 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_power_outlets_list_parameters.go b/netbox/client/dcim/dcim_power_outlets_list_parameters.go index 4d8f0724..63eae460 100644 --- a/netbox/client/dcim/dcim_power_outlets_list_parameters.go +++ b/netbox/client/dcim/dcim_power_outlets_list_parameters.go @@ -110,6 +110,9 @@ type DcimPowerOutletsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -176,6 +179,9 @@ type DcimPowerOutletsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -248,6 +254,9 @@ type DcimPowerOutletsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -539,6 +548,17 @@ func (o *DcimPowerOutletsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPowerOutletsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerOutletsListParams { o.SetDescriptionIc(descriptionIc) @@ -781,6 +801,17 @@ func (o *DcimPowerOutletsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithLabelEmpty(labelEmpty *string) *DcimPowerOutletsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithLabelIc(labelIc *string) *DcimPowerOutletsListParams { o.SetLabelIc(labelIc) @@ -1034,6 +1065,17 @@ func (o *DcimPowerOutletsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerOutletsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithNameIc(nameIc *string) *DcimPowerOutletsListParams { o.SetNameIc(nameIc) @@ -1636,6 +1678,23 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2010,6 +2069,23 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2401,6 +2477,23 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_power_panels_list_parameters.go b/netbox/client/dcim/dcim_power_panels_list_parameters.go index 524f9ef3..ae087cd2 100644 --- a/netbox/client/dcim/dcim_power_panels_list_parameters.go +++ b/netbox/client/dcim/dcim_power_panels_list_parameters.go @@ -164,6 +164,9 @@ type DcimPowerPanelsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -609,6 +612,17 @@ func (o *DcimPowerPanelsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPanelsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithNameIc(nameIc *string) *DcimPowerPanelsListParams { o.SetNameIc(nameIc) @@ -1379,6 +1393,23 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_power_port_templates_list_parameters.go b/netbox/client/dcim/dcim_power_port_templates_list_parameters.go index f47c7185..ae3d34f3 100644 --- a/netbox/client/dcim/dcim_power_port_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_power_port_templates_list_parameters.go @@ -188,6 +188,9 @@ type DcimPowerPortTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -685,6 +688,17 @@ func (o *DcimPowerPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPortTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerPortTemplatesListParams { o.SetNameIc(nameIc) @@ -1459,6 +1473,23 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_power_ports_list_parameters.go b/netbox/client/dcim/dcim_power_ports_list_parameters.go index 0fd51ad5..facc7982 100644 --- a/netbox/client/dcim/dcim_power_ports_list_parameters.go +++ b/netbox/client/dcim/dcim_power_ports_list_parameters.go @@ -128,6 +128,9 @@ type DcimPowerPortsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -188,6 +191,9 @@ type DcimPowerPortsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -278,6 +284,9 @@ type DcimPowerPortsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -635,6 +644,17 @@ func (o *DcimPowerPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPowerPortsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim power ports list params func (o *DcimPowerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -855,6 +875,17 @@ func (o *DcimPowerPortsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimPowerPortsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim power ports list params func (o *DcimPowerPortsListParams) WithLabelIc(labelIc *string) *DcimPowerPortsListParams { o.SetLabelIc(labelIc) @@ -1174,6 +1205,17 @@ func (o *DcimPowerPortsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPortsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim power ports list params func (o *DcimPowerPortsListParams) WithNameIc(nameIc *string) *DcimPowerPortsListParams { o.SetNameIc(nameIc) @@ -1878,6 +1920,23 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2218,6 +2277,23 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2711,6 +2787,23 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_rack_reservations_list_parameters.go b/netbox/client/dcim/dcim_rack_reservations_list_parameters.go index 81e5e7c8..f103341d 100644 --- a/netbox/client/dcim/dcim_rack_reservations_list_parameters.go +++ b/netbox/client/dcim/dcim_rack_reservations_list_parameters.go @@ -98,6 +98,9 @@ type DcimRackReservationsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -408,6 +411,17 @@ func (o *DcimRackReservationsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRackReservationsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithDescriptionIc(descriptionIc *string) *DcimRackReservationsListParams { o.SetDescriptionIc(descriptionIc) @@ -1162,6 +1176,23 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic diff --git a/netbox/client/dcim/dcim_rack_roles_list_parameters.go b/netbox/client/dcim/dcim_rack_roles_list_parameters.go index a28c2227..fb73bd5b 100644 --- a/netbox/client/dcim/dcim_rack_roles_list_parameters.go +++ b/netbox/client/dcim/dcim_rack_roles_list_parameters.go @@ -80,6 +80,9 @@ type DcimRackRolesListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -128,6 +131,9 @@ type DcimRackRolesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -200,6 +206,9 @@ type DcimRackRolesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -245,6 +254,9 @@ type DcimRackRolesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -342,6 +354,17 @@ func (o *DcimRackRolesListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorEmpty(colorEmpty *string) *DcimRackRolesListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithColorIc(colorIc *string) *DcimRackRolesListParams { o.SetColorIc(colorIc) @@ -518,6 +541,17 @@ func (o *DcimRackRolesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRackRolesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithDescriptionIc(descriptionIc *string) *DcimRackRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -771,6 +805,17 @@ func (o *DcimRackRolesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameEmpty(nameEmpty *string) *DcimRackRolesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithNameIc(nameIc *string) *DcimRackRolesListParams { o.SetNameIc(nameIc) @@ -914,6 +959,17 @@ func (o *DcimRackRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimRackRolesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithSlugIc(slugIc *string) *DcimRackRolesListParams { o.SetSlugIc(slugIc) @@ -1060,6 +1116,23 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1332,6 +1405,23 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1723,6 +1813,23 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1944,6 +2051,23 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_racks_list_parameters.go b/netbox/client/dcim/dcim_racks_list_parameters.go index 012d64d0..6476cdc9 100644 --- a/netbox/client/dcim/dcim_racks_list_parameters.go +++ b/netbox/client/dcim/dcim_racks_list_parameters.go @@ -80,6 +80,9 @@ type DcimRacksListParams struct { // AssetTag. AssetTag *string + // AssetTagEmpty. + AssetTagEmpty *string + // AssetTagIc. AssetTagIc *string @@ -149,6 +152,9 @@ type DcimRacksListParams struct { // FacilityID. FacilityID *string + // FacilityIDEmpty. + FacilityIDEmpty *string + // FacilityIDIc. FacilityIDIc *string @@ -230,9 +236,48 @@ type DcimRacksListParams struct { // LocationIDn. LocationIDn *string + // MaxWeight. + MaxWeight *string + + // MaxWeightGt. + MaxWeightGt *string + + // MaxWeightGte. + MaxWeightGte *string + + // MaxWeightLt. + MaxWeightLt *string + + // MaxWeightLte. + MaxWeightLte *string + + // MaxWeightn. + MaxWeightn *string + + // MountingDepth. + MountingDepth *string + + // MountingDepthGt. + MountingDepthGt *string + + // MountingDepthGte. + MountingDepthGte *string + + // MountingDepthLt. + MountingDepthLt *string + + // MountingDepthLte. + MountingDepthLte *string + + // MountingDepthn. + MountingDepthn *string + // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -344,6 +389,9 @@ type DcimRacksListParams struct { // Serial. Serial *string + // SerialEmpty. + SerialEmpty *string + // SerialIc. SerialIc *string @@ -455,6 +503,30 @@ type DcimRacksListParams struct { // UHeightn. UHeightn *string + // Weight. + Weight *string + + // WeightGt. + WeightGt *string + + // WeightGte. + WeightGte *string + + // WeightLt. + WeightLt *string + + // WeightLte. + WeightLte *string + + // Weightn. + Weightn *string + + // WeightUnit. + WeightUnit *string + + // WeightUnitn. + WeightUnitn *string + // Width. Width *string @@ -525,6 +597,17 @@ func (o *DcimRacksListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagEmpty adds the assetTagEmpty to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimRacksListParams { + o.SetAssetTagEmpty(assetTagEmpty) + return o +} + +// SetAssetTagEmpty adds the assetTagEmpty to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagEmpty(assetTagEmpty *string) { + o.AssetTagEmpty = assetTagEmpty +} + // WithAssetTagIc adds the assetTagIc to the dcim racks list params func (o *DcimRacksListParams) WithAssetTagIc(assetTagIc *string) *DcimRacksListParams { o.SetAssetTagIc(assetTagIc) @@ -778,6 +861,17 @@ func (o *DcimRacksListParams) SetFacilityID(facilityID *string) { o.FacilityID = facilityID } +// WithFacilityIDEmpty adds the facilityIDEmpty to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDEmpty(facilityIDEmpty *string) *DcimRacksListParams { + o.SetFacilityIDEmpty(facilityIDEmpty) + return o +} + +// SetFacilityIDEmpty adds the facilityIdEmpty to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDEmpty(facilityIDEmpty *string) { + o.FacilityIDEmpty = facilityIDEmpty +} + // WithFacilityIDIc adds the facilityIDIc to the dcim racks list params func (o *DcimRacksListParams) WithFacilityIDIc(facilityIDIc *string) *DcimRacksListParams { o.SetFacilityIDIc(facilityIDIc) @@ -1064,6 +1158,138 @@ func (o *DcimRacksListParams) SetLocationIDn(locationIDn *string) { o.LocationIDn = locationIDn } +// WithMaxWeight adds the maxWeight to the dcim racks list params +func (o *DcimRacksListParams) WithMaxWeight(maxWeight *string) *DcimRacksListParams { + o.SetMaxWeight(maxWeight) + return o +} + +// SetMaxWeight adds the maxWeight to the dcim racks list params +func (o *DcimRacksListParams) SetMaxWeight(maxWeight *string) { + o.MaxWeight = maxWeight +} + +// WithMaxWeightGt adds the maxWeightGt to the dcim racks list params +func (o *DcimRacksListParams) WithMaxWeightGt(maxWeightGt *string) *DcimRacksListParams { + o.SetMaxWeightGt(maxWeightGt) + return o +} + +// SetMaxWeightGt adds the maxWeightGt to the dcim racks list params +func (o *DcimRacksListParams) SetMaxWeightGt(maxWeightGt *string) { + o.MaxWeightGt = maxWeightGt +} + +// WithMaxWeightGte adds the maxWeightGte to the dcim racks list params +func (o *DcimRacksListParams) WithMaxWeightGte(maxWeightGte *string) *DcimRacksListParams { + o.SetMaxWeightGte(maxWeightGte) + return o +} + +// SetMaxWeightGte adds the maxWeightGte to the dcim racks list params +func (o *DcimRacksListParams) SetMaxWeightGte(maxWeightGte *string) { + o.MaxWeightGte = maxWeightGte +} + +// WithMaxWeightLt adds the maxWeightLt to the dcim racks list params +func (o *DcimRacksListParams) WithMaxWeightLt(maxWeightLt *string) *DcimRacksListParams { + o.SetMaxWeightLt(maxWeightLt) + return o +} + +// SetMaxWeightLt adds the maxWeightLt to the dcim racks list params +func (o *DcimRacksListParams) SetMaxWeightLt(maxWeightLt *string) { + o.MaxWeightLt = maxWeightLt +} + +// WithMaxWeightLte adds the maxWeightLte to the dcim racks list params +func (o *DcimRacksListParams) WithMaxWeightLte(maxWeightLte *string) *DcimRacksListParams { + o.SetMaxWeightLte(maxWeightLte) + return o +} + +// SetMaxWeightLte adds the maxWeightLte to the dcim racks list params +func (o *DcimRacksListParams) SetMaxWeightLte(maxWeightLte *string) { + o.MaxWeightLte = maxWeightLte +} + +// WithMaxWeightn adds the maxWeightn to the dcim racks list params +func (o *DcimRacksListParams) WithMaxWeightn(maxWeightn *string) *DcimRacksListParams { + o.SetMaxWeightn(maxWeightn) + return o +} + +// SetMaxWeightn adds the maxWeightN to the dcim racks list params +func (o *DcimRacksListParams) SetMaxWeightn(maxWeightn *string) { + o.MaxWeightn = maxWeightn +} + +// WithMountingDepth adds the mountingDepth to the dcim racks list params +func (o *DcimRacksListParams) WithMountingDepth(mountingDepth *string) *DcimRacksListParams { + o.SetMountingDepth(mountingDepth) + return o +} + +// SetMountingDepth adds the mountingDepth to the dcim racks list params +func (o *DcimRacksListParams) SetMountingDepth(mountingDepth *string) { + o.MountingDepth = mountingDepth +} + +// WithMountingDepthGt adds the mountingDepthGt to the dcim racks list params +func (o *DcimRacksListParams) WithMountingDepthGt(mountingDepthGt *string) *DcimRacksListParams { + o.SetMountingDepthGt(mountingDepthGt) + return o +} + +// SetMountingDepthGt adds the mountingDepthGt to the dcim racks list params +func (o *DcimRacksListParams) SetMountingDepthGt(mountingDepthGt *string) { + o.MountingDepthGt = mountingDepthGt +} + +// WithMountingDepthGte adds the mountingDepthGte to the dcim racks list params +func (o *DcimRacksListParams) WithMountingDepthGte(mountingDepthGte *string) *DcimRacksListParams { + o.SetMountingDepthGte(mountingDepthGte) + return o +} + +// SetMountingDepthGte adds the mountingDepthGte to the dcim racks list params +func (o *DcimRacksListParams) SetMountingDepthGte(mountingDepthGte *string) { + o.MountingDepthGte = mountingDepthGte +} + +// WithMountingDepthLt adds the mountingDepthLt to the dcim racks list params +func (o *DcimRacksListParams) WithMountingDepthLt(mountingDepthLt *string) *DcimRacksListParams { + o.SetMountingDepthLt(mountingDepthLt) + return o +} + +// SetMountingDepthLt adds the mountingDepthLt to the dcim racks list params +func (o *DcimRacksListParams) SetMountingDepthLt(mountingDepthLt *string) { + o.MountingDepthLt = mountingDepthLt +} + +// WithMountingDepthLte adds the mountingDepthLte to the dcim racks list params +func (o *DcimRacksListParams) WithMountingDepthLte(mountingDepthLte *string) *DcimRacksListParams { + o.SetMountingDepthLte(mountingDepthLte) + return o +} + +// SetMountingDepthLte adds the mountingDepthLte to the dcim racks list params +func (o *DcimRacksListParams) SetMountingDepthLte(mountingDepthLte *string) { + o.MountingDepthLte = mountingDepthLte +} + +// WithMountingDepthn adds the mountingDepthn to the dcim racks list params +func (o *DcimRacksListParams) WithMountingDepthn(mountingDepthn *string) *DcimRacksListParams { + o.SetMountingDepthn(mountingDepthn) + return o +} + +// SetMountingDepthn adds the mountingDepthN to the dcim racks list params +func (o *DcimRacksListParams) SetMountingDepthn(mountingDepthn *string) { + o.MountingDepthn = mountingDepthn +} + // WithName adds the name to the dcim racks list params func (o *DcimRacksListParams) WithName(name *string) *DcimRacksListParams { o.SetName(name) @@ -1075,6 +1301,17 @@ func (o *DcimRacksListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim racks list params +func (o *DcimRacksListParams) WithNameEmpty(nameEmpty *string) *DcimRacksListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim racks list params +func (o *DcimRacksListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim racks list params func (o *DcimRacksListParams) WithNameIc(nameIc *string) *DcimRacksListParams { o.SetNameIc(nameIc) @@ -1460,6 +1697,17 @@ func (o *DcimRacksListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialEmpty adds the serialEmpty to the dcim racks list params +func (o *DcimRacksListParams) WithSerialEmpty(serialEmpty *string) *DcimRacksListParams { + o.SetSerialEmpty(serialEmpty) + return o +} + +// SetSerialEmpty adds the serialEmpty to the dcim racks list params +func (o *DcimRacksListParams) SetSerialEmpty(serialEmpty *string) { + o.SerialEmpty = serialEmpty +} + // WithSerialIc adds the serialIc to the dcim racks list params func (o *DcimRacksListParams) WithSerialIc(serialIc *string) *DcimRacksListParams { o.SetSerialIc(serialIc) @@ -1867,6 +2115,94 @@ func (o *DcimRacksListParams) SetUHeightn(uHeightn *string) { o.UHeightn = uHeightn } +// WithWeight adds the weight to the dcim racks list params +func (o *DcimRacksListParams) WithWeight(weight *string) *DcimRacksListParams { + o.SetWeight(weight) + return o +} + +// SetWeight adds the weight to the dcim racks list params +func (o *DcimRacksListParams) SetWeight(weight *string) { + o.Weight = weight +} + +// WithWeightGt adds the weightGt to the dcim racks list params +func (o *DcimRacksListParams) WithWeightGt(weightGt *string) *DcimRacksListParams { + o.SetWeightGt(weightGt) + return o +} + +// SetWeightGt adds the weightGt to the dcim racks list params +func (o *DcimRacksListParams) SetWeightGt(weightGt *string) { + o.WeightGt = weightGt +} + +// WithWeightGte adds the weightGte to the dcim racks list params +func (o *DcimRacksListParams) WithWeightGte(weightGte *string) *DcimRacksListParams { + o.SetWeightGte(weightGte) + return o +} + +// SetWeightGte adds the weightGte to the dcim racks list params +func (o *DcimRacksListParams) SetWeightGte(weightGte *string) { + o.WeightGte = weightGte +} + +// WithWeightLt adds the weightLt to the dcim racks list params +func (o *DcimRacksListParams) WithWeightLt(weightLt *string) *DcimRacksListParams { + o.SetWeightLt(weightLt) + return o +} + +// SetWeightLt adds the weightLt to the dcim racks list params +func (o *DcimRacksListParams) SetWeightLt(weightLt *string) { + o.WeightLt = weightLt +} + +// WithWeightLte adds the weightLte to the dcim racks list params +func (o *DcimRacksListParams) WithWeightLte(weightLte *string) *DcimRacksListParams { + o.SetWeightLte(weightLte) + return o +} + +// SetWeightLte adds the weightLte to the dcim racks list params +func (o *DcimRacksListParams) SetWeightLte(weightLte *string) { + o.WeightLte = weightLte +} + +// WithWeightn adds the weightn to the dcim racks list params +func (o *DcimRacksListParams) WithWeightn(weightn *string) *DcimRacksListParams { + o.SetWeightn(weightn) + return o +} + +// SetWeightn adds the weightN to the dcim racks list params +func (o *DcimRacksListParams) SetWeightn(weightn *string) { + o.Weightn = weightn +} + +// WithWeightUnit adds the weightUnit to the dcim racks list params +func (o *DcimRacksListParams) WithWeightUnit(weightUnit *string) *DcimRacksListParams { + o.SetWeightUnit(weightUnit) + return o +} + +// SetWeightUnit adds the weightUnit to the dcim racks list params +func (o *DcimRacksListParams) SetWeightUnit(weightUnit *string) { + o.WeightUnit = weightUnit +} + +// WithWeightUnitn adds the weightUnitn to the dcim racks list params +func (o *DcimRacksListParams) WithWeightUnitn(weightUnitn *string) *DcimRacksListParams { + o.SetWeightUnitn(weightUnitn) + return o +} + +// SetWeightUnitn adds the weightUnitN to the dcim racks list params +func (o *DcimRacksListParams) SetWeightUnitn(weightUnitn *string) { + o.WeightUnitn = weightUnitn +} + // WithWidth adds the width to the dcim racks list params func (o *DcimRacksListParams) WithWidth(width *string) *DcimRacksListParams { o.SetWidth(width) @@ -1914,6 +2250,23 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.AssetTagEmpty != nil { + + // query param asset_tag__empty + var qrAssetTagEmpty string + + if o.AssetTagEmpty != nil { + qrAssetTagEmpty = *o.AssetTagEmpty + } + qAssetTagEmpty := qrAssetTagEmpty + if qAssetTagEmpty != "" { + + if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { + return err + } + } + } + if o.AssetTagIc != nil { // query param asset_tag__ic @@ -2305,6 +2658,23 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.FacilityIDEmpty != nil { + + // query param facility_id__empty + var qrFacilityIDEmpty string + + if o.FacilityIDEmpty != nil { + qrFacilityIDEmpty = *o.FacilityIDEmpty + } + qFacilityIDEmpty := qrFacilityIDEmpty + if qFacilityIDEmpty != "" { + + if err := r.SetQueryParam("facility_id__empty", qFacilityIDEmpty); err != nil { + return err + } + } + } + if o.FacilityIDIc != nil { // query param facility_id__ic @@ -2747,6 +3117,210 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.MaxWeight != nil { + + // query param max_weight + var qrMaxWeight string + + if o.MaxWeight != nil { + qrMaxWeight = *o.MaxWeight + } + qMaxWeight := qrMaxWeight + if qMaxWeight != "" { + + if err := r.SetQueryParam("max_weight", qMaxWeight); err != nil { + return err + } + } + } + + if o.MaxWeightGt != nil { + + // query param max_weight__gt + var qrMaxWeightGt string + + if o.MaxWeightGt != nil { + qrMaxWeightGt = *o.MaxWeightGt + } + qMaxWeightGt := qrMaxWeightGt + if qMaxWeightGt != "" { + + if err := r.SetQueryParam("max_weight__gt", qMaxWeightGt); err != nil { + return err + } + } + } + + if o.MaxWeightGte != nil { + + // query param max_weight__gte + var qrMaxWeightGte string + + if o.MaxWeightGte != nil { + qrMaxWeightGte = *o.MaxWeightGte + } + qMaxWeightGte := qrMaxWeightGte + if qMaxWeightGte != "" { + + if err := r.SetQueryParam("max_weight__gte", qMaxWeightGte); err != nil { + return err + } + } + } + + if o.MaxWeightLt != nil { + + // query param max_weight__lt + var qrMaxWeightLt string + + if o.MaxWeightLt != nil { + qrMaxWeightLt = *o.MaxWeightLt + } + qMaxWeightLt := qrMaxWeightLt + if qMaxWeightLt != "" { + + if err := r.SetQueryParam("max_weight__lt", qMaxWeightLt); err != nil { + return err + } + } + } + + if o.MaxWeightLte != nil { + + // query param max_weight__lte + var qrMaxWeightLte string + + if o.MaxWeightLte != nil { + qrMaxWeightLte = *o.MaxWeightLte + } + qMaxWeightLte := qrMaxWeightLte + if qMaxWeightLte != "" { + + if err := r.SetQueryParam("max_weight__lte", qMaxWeightLte); err != nil { + return err + } + } + } + + if o.MaxWeightn != nil { + + // query param max_weight__n + var qrMaxWeightn string + + if o.MaxWeightn != nil { + qrMaxWeightn = *o.MaxWeightn + } + qMaxWeightn := qrMaxWeightn + if qMaxWeightn != "" { + + if err := r.SetQueryParam("max_weight__n", qMaxWeightn); err != nil { + return err + } + } + } + + if o.MountingDepth != nil { + + // query param mounting_depth + var qrMountingDepth string + + if o.MountingDepth != nil { + qrMountingDepth = *o.MountingDepth + } + qMountingDepth := qrMountingDepth + if qMountingDepth != "" { + + if err := r.SetQueryParam("mounting_depth", qMountingDepth); err != nil { + return err + } + } + } + + if o.MountingDepthGt != nil { + + // query param mounting_depth__gt + var qrMountingDepthGt string + + if o.MountingDepthGt != nil { + qrMountingDepthGt = *o.MountingDepthGt + } + qMountingDepthGt := qrMountingDepthGt + if qMountingDepthGt != "" { + + if err := r.SetQueryParam("mounting_depth__gt", qMountingDepthGt); err != nil { + return err + } + } + } + + if o.MountingDepthGte != nil { + + // query param mounting_depth__gte + var qrMountingDepthGte string + + if o.MountingDepthGte != nil { + qrMountingDepthGte = *o.MountingDepthGte + } + qMountingDepthGte := qrMountingDepthGte + if qMountingDepthGte != "" { + + if err := r.SetQueryParam("mounting_depth__gte", qMountingDepthGte); err != nil { + return err + } + } + } + + if o.MountingDepthLt != nil { + + // query param mounting_depth__lt + var qrMountingDepthLt string + + if o.MountingDepthLt != nil { + qrMountingDepthLt = *o.MountingDepthLt + } + qMountingDepthLt := qrMountingDepthLt + if qMountingDepthLt != "" { + + if err := r.SetQueryParam("mounting_depth__lt", qMountingDepthLt); err != nil { + return err + } + } + } + + if o.MountingDepthLte != nil { + + // query param mounting_depth__lte + var qrMountingDepthLte string + + if o.MountingDepthLte != nil { + qrMountingDepthLte = *o.MountingDepthLte + } + qMountingDepthLte := qrMountingDepthLte + if qMountingDepthLte != "" { + + if err := r.SetQueryParam("mounting_depth__lte", qMountingDepthLte); err != nil { + return err + } + } + } + + if o.MountingDepthn != nil { + + // query param mounting_depth__n + var qrMountingDepthn string + + if o.MountingDepthn != nil { + qrMountingDepthn = *o.MountingDepthn + } + qMountingDepthn := qrMountingDepthn + if qMountingDepthn != "" { + + if err := r.SetQueryParam("mounting_depth__n", qMountingDepthn); err != nil { + return err + } + } + } + if o.Name != nil { // query param name @@ -2764,6 +3338,23 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -3359,6 +3950,23 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.SerialEmpty != nil { + + // query param serial__empty + var qrSerialEmpty string + + if o.SerialEmpty != nil { + qrSerialEmpty = *o.SerialEmpty + } + qSerialEmpty := qrSerialEmpty + if qSerialEmpty != "" { + + if err := r.SetQueryParam("serial__empty", qSerialEmpty); err != nil { + return err + } + } + } + if o.SerialIc != nil { // query param serial__ic @@ -3988,6 +4596,142 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.Weight != nil { + + // query param weight + var qrWeight string + + if o.Weight != nil { + qrWeight = *o.Weight + } + qWeight := qrWeight + if qWeight != "" { + + if err := r.SetQueryParam("weight", qWeight); err != nil { + return err + } + } + } + + if o.WeightGt != nil { + + // query param weight__gt + var qrWeightGt string + + if o.WeightGt != nil { + qrWeightGt = *o.WeightGt + } + qWeightGt := qrWeightGt + if qWeightGt != "" { + + if err := r.SetQueryParam("weight__gt", qWeightGt); err != nil { + return err + } + } + } + + if o.WeightGte != nil { + + // query param weight__gte + var qrWeightGte string + + if o.WeightGte != nil { + qrWeightGte = *o.WeightGte + } + qWeightGte := qrWeightGte + if qWeightGte != "" { + + if err := r.SetQueryParam("weight__gte", qWeightGte); err != nil { + return err + } + } + } + + if o.WeightLt != nil { + + // query param weight__lt + var qrWeightLt string + + if o.WeightLt != nil { + qrWeightLt = *o.WeightLt + } + qWeightLt := qrWeightLt + if qWeightLt != "" { + + if err := r.SetQueryParam("weight__lt", qWeightLt); err != nil { + return err + } + } + } + + if o.WeightLte != nil { + + // query param weight__lte + var qrWeightLte string + + if o.WeightLte != nil { + qrWeightLte = *o.WeightLte + } + qWeightLte := qrWeightLte + if qWeightLte != "" { + + if err := r.SetQueryParam("weight__lte", qWeightLte); err != nil { + return err + } + } + } + + if o.Weightn != nil { + + // query param weight__n + var qrWeightn string + + if o.Weightn != nil { + qrWeightn = *o.Weightn + } + qWeightn := qrWeightn + if qWeightn != "" { + + if err := r.SetQueryParam("weight__n", qWeightn); err != nil { + return err + } + } + } + + if o.WeightUnit != nil { + + // query param weight_unit + var qrWeightUnit string + + if o.WeightUnit != nil { + qrWeightUnit = *o.WeightUnit + } + qWeightUnit := qrWeightUnit + if qWeightUnit != "" { + + if err := r.SetQueryParam("weight_unit", qWeightUnit); err != nil { + return err + } + } + } + + if o.WeightUnitn != nil { + + // query param weight_unit__n + var qrWeightUnitn string + + if o.WeightUnitn != nil { + qrWeightUnitn = *o.WeightUnitn + } + qWeightUnitn := qrWeightUnitn + if qWeightUnitn != "" { + + if err := r.SetQueryParam("weight_unit__n", qWeightUnitn); err != nil { + return err + } + } + } + if o.Width != nil { // query param width diff --git a/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go b/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go index 46c93733..7152a328 100644 --- a/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go +++ b/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go @@ -80,6 +80,9 @@ type DcimRearPortTemplatesListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -182,6 +185,9 @@ type DcimRearPortTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -312,6 +318,17 @@ func (o *DcimRearPortTemplatesListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithColorEmpty(colorEmpty *string) *DcimRearPortTemplatesListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithColorIc(colorIc *string) *DcimRearPortTemplatesListParams { o.SetColorIc(colorIc) @@ -675,6 +692,17 @@ func (o *DcimRearPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimRearPortTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithNameIc(nameIc *string) *DcimRearPortTemplatesListParams { o.SetNameIc(nameIc) @@ -920,6 +948,23 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1481,6 +1526,23 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_rear_ports_list_parameters.go b/netbox/client/dcim/dcim_rear_ports_list_parameters.go index 86b7e9fa..fba24fc7 100644 --- a/netbox/client/dcim/dcim_rear_ports_list_parameters.go +++ b/netbox/client/dcim/dcim_rear_ports_list_parameters.go @@ -89,6 +89,9 @@ type DcimRearPortsListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -137,6 +140,9 @@ type DcimRearPortsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -197,6 +203,9 @@ type DcimRearPortsListParams struct { // Label. Label *string + // LabelEmpty. + LabelEmpty *string + // LabelIc. LabelIc *string @@ -269,6 +278,9 @@ type DcimRearPortsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -501,6 +513,17 @@ func (o *DcimRearPortsListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithColorEmpty(colorEmpty *string) *DcimRearPortsListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithColorIc(colorIc *string) *DcimRearPortsListParams { o.SetColorIc(colorIc) @@ -677,6 +700,17 @@ func (o *DcimRearPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRearPortsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimRearPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -897,6 +931,17 @@ func (o *DcimRearPortsListParams) SetLabel(label *string) { o.Label = label } +// WithLabelEmpty adds the labelEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimRearPortsListParams { + o.SetLabelEmpty(labelEmpty) + return o +} + +// SetLabelEmpty adds the labelEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetLabelEmpty(labelEmpty *string) { + o.LabelEmpty = labelEmpty +} + // WithLabelIc adds the labelIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithLabelIc(labelIc *string) *DcimRearPortsListParams { o.SetLabelIc(labelIc) @@ -1150,6 +1195,17 @@ func (o *DcimRearPortsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameEmpty(nameEmpty *string) *DcimRearPortsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithNameIc(nameIc *string) *DcimRearPortsListParams { o.SetNameIc(nameIc) @@ -1699,6 +1755,23 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1971,6 +2044,23 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2311,6 +2401,23 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.LabelEmpty != nil { + + // query param label__empty + var qrLabelEmpty string + + if o.LabelEmpty != nil { + qrLabelEmpty = *o.LabelEmpty + } + qLabelEmpty := qrLabelEmpty + if qLabelEmpty != "" { + + if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { + return err + } + } + } + if o.LabelIc != nil { // query param label__ic @@ -2702,6 +2809,23 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_regions_list_parameters.go b/netbox/client/dcim/dcim_regions_list_parameters.go index ccb15029..2ce67c3d 100644 --- a/netbox/client/dcim/dcim_regions_list_parameters.go +++ b/netbox/client/dcim/dcim_regions_list_parameters.go @@ -116,6 +116,9 @@ type DcimRegionsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -188,6 +191,9 @@ type DcimRegionsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -245,6 +251,9 @@ type DcimRegionsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -474,6 +483,17 @@ func (o *DcimRegionsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRegionsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim regions list params func (o *DcimRegionsListParams) WithDescriptionIc(descriptionIc *string) *DcimRegionsListParams { o.SetDescriptionIc(descriptionIc) @@ -727,6 +747,17 @@ func (o *DcimRegionsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim regions list params +func (o *DcimRegionsListParams) WithNameEmpty(nameEmpty *string) *DcimRegionsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim regions list params +func (o *DcimRegionsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim regions list params func (o *DcimRegionsListParams) WithNameIc(nameIc *string) *DcimRegionsListParams { o.SetNameIc(nameIc) @@ -914,6 +945,17 @@ func (o *DcimRegionsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugEmpty(slugEmpty *string) *DcimRegionsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim regions list params func (o *DcimRegionsListParams) WithSlugIc(slugIc *string) *DcimRegionsListParams { o.SetSlugIc(slugIc) @@ -1264,6 +1306,23 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1655,6 +1714,23 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1944,6 +2020,23 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_site_groups_list_parameters.go b/netbox/client/dcim/dcim_site_groups_list_parameters.go index c58f59d7..5cf0f0ee 100644 --- a/netbox/client/dcim/dcim_site_groups_list_parameters.go +++ b/netbox/client/dcim/dcim_site_groups_list_parameters.go @@ -116,6 +116,9 @@ type DcimSiteGroupsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -188,6 +191,9 @@ type DcimSiteGroupsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -245,6 +251,9 @@ type DcimSiteGroupsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -474,6 +483,17 @@ func (o *DcimSiteGroupsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim site groups list params +func (o *DcimSiteGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimSiteGroupsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim site groups list params +func (o *DcimSiteGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithDescriptionIc(descriptionIc *string) *DcimSiteGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -727,6 +747,17 @@ func (o *DcimSiteGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim site groups list params +func (o *DcimSiteGroupsListParams) WithNameEmpty(nameEmpty *string) *DcimSiteGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim site groups list params +func (o *DcimSiteGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithNameIc(nameIc *string) *DcimSiteGroupsListParams { o.SetNameIc(nameIc) @@ -914,6 +945,17 @@ func (o *DcimSiteGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim site groups list params +func (o *DcimSiteGroupsListParams) WithSlugEmpty(slugEmpty *string) *DcimSiteGroupsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim site groups list params +func (o *DcimSiteGroupsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithSlugIc(slugIc *string) *DcimSiteGroupsListParams { o.SetSlugIc(slugIc) @@ -1264,6 +1306,23 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1655,6 +1714,23 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1944,6 +2020,23 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_sites_list_parameters.go b/netbox/client/dcim/dcim_sites_list_parameters.go index 81f53f90..ca601bc9 100644 --- a/netbox/client/dcim/dcim_sites_list_parameters.go +++ b/netbox/client/dcim/dcim_sites_list_parameters.go @@ -128,6 +128,9 @@ type DcimSitesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -158,6 +161,9 @@ type DcimSitesListParams struct { // Facility. Facility *string + // FacilityEmpty. + FacilityEmpty *string + // FacilityIc. FacilityIc *string @@ -278,6 +284,9 @@ type DcimSitesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -335,6 +344,9 @@ type DcimSitesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -638,6 +650,17 @@ func (o *DcimSitesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the dcim sites list params +func (o *DcimSitesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimSitesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the dcim sites list params +func (o *DcimSitesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the dcim sites list params func (o *DcimSitesListParams) WithDescriptionIc(descriptionIc *string) *DcimSitesListParams { o.SetDescriptionIc(descriptionIc) @@ -748,6 +771,17 @@ func (o *DcimSitesListParams) SetFacility(facility *string) { o.Facility = facility } +// WithFacilityEmpty adds the facilityEmpty to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityEmpty(facilityEmpty *string) *DcimSitesListParams { + o.SetFacilityEmpty(facilityEmpty) + return o +} + +// SetFacilityEmpty adds the facilityEmpty to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityEmpty(facilityEmpty *string) { + o.FacilityEmpty = facilityEmpty +} + // WithFacilityIc adds the facilityIc to the dcim sites list params func (o *DcimSitesListParams) WithFacilityIc(facilityIc *string) *DcimSitesListParams { o.SetFacilityIc(facilityIc) @@ -1177,6 +1211,17 @@ func (o *DcimSitesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim sites list params +func (o *DcimSitesListParams) WithNameEmpty(nameEmpty *string) *DcimSitesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim sites list params +func (o *DcimSitesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim sites list params func (o *DcimSitesListParams) WithNameIc(nameIc *string) *DcimSitesListParams { o.SetNameIc(nameIc) @@ -1364,6 +1409,17 @@ func (o *DcimSitesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the dcim sites list params +func (o *DcimSitesListParams) WithSlugEmpty(slugEmpty *string) *DcimSitesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the dcim sites list params +func (o *DcimSitesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the dcim sites list params func (o *DcimSitesListParams) WithSlugIc(slugIc *string) *DcimSitesListParams { o.SetSlugIc(slugIc) @@ -1892,6 +1948,23 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2062,6 +2135,23 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.FacilityEmpty != nil { + + // query param facility__empty + var qrFacilityEmpty string + + if o.FacilityEmpty != nil { + qrFacilityEmpty = *o.FacilityEmpty + } + qFacilityEmpty := qrFacilityEmpty + if qFacilityEmpty != "" { + + if err := r.SetQueryParam("facility__empty", qFacilityEmpty); err != nil { + return err + } + } + } + if o.FacilityIc != nil { // query param facility__ic @@ -2725,6 +2815,23 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -3014,6 +3121,23 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go b/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go index 3ed1fdf5..d563a449 100644 --- a/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go +++ b/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go @@ -98,6 +98,9 @@ type DcimVirtualChassisListParams struct { // Domain. Domain *string + // DomainEmpty. + DomainEmpty *string + // DomainIc. DomainIc *string @@ -182,6 +185,9 @@ type DcimVirtualChassisListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -408,6 +414,17 @@ func (o *DcimVirtualChassisListParams) SetDomain(domain *string) { o.Domain = domain } +// WithDomainEmpty adds the domainEmpty to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainEmpty(domainEmpty *string) *DcimVirtualChassisListParams { + o.SetDomainEmpty(domainEmpty) + return o +} + +// SetDomainEmpty adds the domainEmpty to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainEmpty(domainEmpty *string) { + o.DomainEmpty = domainEmpty +} + // WithDomainIc adds the domainIc to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithDomainIc(domainIc *string) *DcimVirtualChassisListParams { o.SetDomainIc(domainIc) @@ -705,6 +722,17 @@ func (o *DcimVirtualChassisListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithNameEmpty(nameEmpty *string) *DcimVirtualChassisListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithNameIc(nameIc *string) *DcimVirtualChassisListParams { o.SetNameIc(nameIc) @@ -1162,6 +1190,23 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.DomainEmpty != nil { + + // query param domain__empty + var qrDomainEmpty string + + if o.DomainEmpty != nil { + qrDomainEmpty = *o.DomainEmpty + } + qDomainEmpty := qrDomainEmpty + if qDomainEmpty != "" { + + if err := r.SetQueryParam("domain__empty", qDomainEmpty); err != nil { + return err + } + } + } + if o.DomainIc != nil { // query param domain__ic @@ -1621,6 +1666,23 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_parameters.go new file mode 100644 index 00000000..de261d7c --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_parameters.go @@ -0,0 +1,143 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDcimVirtualDeviceContextsBulkDeleteParams creates a new DcimVirtualDeviceContextsBulkDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsBulkDeleteParams() *DcimVirtualDeviceContextsBulkDeleteParams { + return &DcimVirtualDeviceContextsBulkDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsBulkDeleteParamsWithTimeout creates a new DcimVirtualDeviceContextsBulkDeleteParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsBulkDeleteParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsBulkDeleteParams { + return &DcimVirtualDeviceContextsBulkDeleteParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsBulkDeleteParamsWithContext creates a new DcimVirtualDeviceContextsBulkDeleteParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsBulkDeleteParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsBulkDeleteParams { + return &DcimVirtualDeviceContextsBulkDeleteParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsBulkDeleteParamsWithHTTPClient creates a new DcimVirtualDeviceContextsBulkDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsBulkDeleteParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsBulkDeleteParams { + return &DcimVirtualDeviceContextsBulkDeleteParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsBulkDeleteParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts bulk delete operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsBulkDeleteParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts bulk delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsBulkDeleteParams) WithDefaults() *DcimVirtualDeviceContextsBulkDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts bulk delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsBulkDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts bulk delete params +func (o *DcimVirtualDeviceContextsBulkDeleteParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsBulkDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts bulk delete params +func (o *DcimVirtualDeviceContextsBulkDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts bulk delete params +func (o *DcimVirtualDeviceContextsBulkDeleteParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsBulkDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts bulk delete params +func (o *DcimVirtualDeviceContextsBulkDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts bulk delete params +func (o *DcimVirtualDeviceContextsBulkDeleteParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsBulkDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts bulk delete params +func (o *DcimVirtualDeviceContextsBulkDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsBulkDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_responses.go new file mode 100644 index 00000000..a0d9d29c --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_responses.go @@ -0,0 +1,98 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DcimVirtualDeviceContextsBulkDeleteReader is a Reader for the DcimVirtualDeviceContextsBulkDelete structure. +type DcimVirtualDeviceContextsBulkDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsBulkDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDcimVirtualDeviceContextsBulkDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsBulkDeleteNoContent creates a DcimVirtualDeviceContextsBulkDeleteNoContent with default headers values +func NewDcimVirtualDeviceContextsBulkDeleteNoContent() *DcimVirtualDeviceContextsBulkDeleteNoContent { + return &DcimVirtualDeviceContextsBulkDeleteNoContent{} +} + +/* +DcimVirtualDeviceContextsBulkDeleteNoContent describes a response with status code 204, with default header values. + +DcimVirtualDeviceContextsBulkDeleteNoContent dcim virtual device contexts bulk delete no content +*/ +type DcimVirtualDeviceContextsBulkDeleteNoContent struct { +} + +// IsSuccess returns true when this dcim virtual device contexts bulk delete no content response has a 2xx status code +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts bulk delete no content response has a 3xx status code +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts bulk delete no content response has a 4xx status code +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts bulk delete no content response has a 5xx status code +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts bulk delete no content response a status code equal to that given +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) IsCode(code int) bool { + return code == 204 +} + +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsBulkDeleteNoContent ", 204) +} + +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) String() string { + return fmt.Sprintf("[DELETE /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsBulkDeleteNoContent ", 204) +} + +func (o *DcimVirtualDeviceContextsBulkDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_parameters.go new file mode 100644 index 00000000..683a42fb --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_parameters.go @@ -0,0 +1,165 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewDcimVirtualDeviceContextsBulkPartialUpdateParams creates a new DcimVirtualDeviceContextsBulkPartialUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsBulkPartialUpdateParams() *DcimVirtualDeviceContextsBulkPartialUpdateParams { + return &DcimVirtualDeviceContextsBulkPartialUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsBulkPartialUpdateParamsWithTimeout creates a new DcimVirtualDeviceContextsBulkPartialUpdateParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsBulkPartialUpdateParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + return &DcimVirtualDeviceContextsBulkPartialUpdateParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsBulkPartialUpdateParamsWithContext creates a new DcimVirtualDeviceContextsBulkPartialUpdateParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsBulkPartialUpdateParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + return &DcimVirtualDeviceContextsBulkPartialUpdateParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsBulkPartialUpdateParamsWithHTTPClient creates a new DcimVirtualDeviceContextsBulkPartialUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsBulkPartialUpdateParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + return &DcimVirtualDeviceContextsBulkPartialUpdateParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsBulkPartialUpdateParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts bulk partial update operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsBulkPartialUpdateParams struct { + + // Data. + Data *models.WritableVirtualDeviceContext + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts bulk partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) WithDefaults() *DcimVirtualDeviceContextsBulkPartialUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts bulk partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) WithData(data *models.WritableVirtualDeviceContext) *DcimVirtualDeviceContextsBulkPartialUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the dcim virtual device contexts bulk partial update params +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) SetData(data *models.WritableVirtualDeviceContext) { + o.Data = data +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsBulkPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_responses.go new file mode 100644 index 00000000..d4c7c86f --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsBulkPartialUpdateReader is a Reader for the DcimVirtualDeviceContextsBulkPartialUpdate structure. +type DcimVirtualDeviceContextsBulkPartialUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsBulkPartialUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDcimVirtualDeviceContextsBulkPartialUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsBulkPartialUpdateOK creates a DcimVirtualDeviceContextsBulkPartialUpdateOK with default headers values +func NewDcimVirtualDeviceContextsBulkPartialUpdateOK() *DcimVirtualDeviceContextsBulkPartialUpdateOK { + return &DcimVirtualDeviceContextsBulkPartialUpdateOK{} +} + +/* +DcimVirtualDeviceContextsBulkPartialUpdateOK describes a response with status code 200, with default header values. + +DcimVirtualDeviceContextsBulkPartialUpdateOK dcim virtual device contexts bulk partial update o k +*/ +type DcimVirtualDeviceContextsBulkPartialUpdateOK struct { + Payload *models.VirtualDeviceContext +} + +// IsSuccess returns true when this dcim virtual device contexts bulk partial update o k response has a 2xx status code +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts bulk partial update o k response has a 3xx status code +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts bulk partial update o k response has a 4xx status code +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts bulk partial update o k response has a 5xx status code +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts bulk partial update o k response a status code equal to that given +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) Error() string { + return fmt.Sprintf("[PATCH /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsBulkPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) String() string { + return fmt.Sprintf("[PATCH /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsBulkPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) GetPayload() *models.VirtualDeviceContext { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsBulkPartialUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.VirtualDeviceContext) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_parameters.go new file mode 100644 index 00000000..23c66cb9 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_parameters.go @@ -0,0 +1,165 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewDcimVirtualDeviceContextsBulkUpdateParams creates a new DcimVirtualDeviceContextsBulkUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsBulkUpdateParams() *DcimVirtualDeviceContextsBulkUpdateParams { + return &DcimVirtualDeviceContextsBulkUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsBulkUpdateParamsWithTimeout creates a new DcimVirtualDeviceContextsBulkUpdateParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsBulkUpdateParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsBulkUpdateParams { + return &DcimVirtualDeviceContextsBulkUpdateParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsBulkUpdateParamsWithContext creates a new DcimVirtualDeviceContextsBulkUpdateParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsBulkUpdateParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsBulkUpdateParams { + return &DcimVirtualDeviceContextsBulkUpdateParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsBulkUpdateParamsWithHTTPClient creates a new DcimVirtualDeviceContextsBulkUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsBulkUpdateParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsBulkUpdateParams { + return &DcimVirtualDeviceContextsBulkUpdateParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsBulkUpdateParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts bulk update operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsBulkUpdateParams struct { + + // Data. + Data *models.WritableVirtualDeviceContext + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts bulk update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsBulkUpdateParams) WithDefaults() *DcimVirtualDeviceContextsBulkUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts bulk update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsBulkUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsBulkUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsBulkUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsBulkUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) WithData(data *models.WritableVirtualDeviceContext) *DcimVirtualDeviceContextsBulkUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the dcim virtual device contexts bulk update params +func (o *DcimVirtualDeviceContextsBulkUpdateParams) SetData(data *models.WritableVirtualDeviceContext) { + o.Data = data +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsBulkUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_responses.go new file mode 100644 index 00000000..7d46ccef --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsBulkUpdateReader is a Reader for the DcimVirtualDeviceContextsBulkUpdate structure. +type DcimVirtualDeviceContextsBulkUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsBulkUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDcimVirtualDeviceContextsBulkUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsBulkUpdateOK creates a DcimVirtualDeviceContextsBulkUpdateOK with default headers values +func NewDcimVirtualDeviceContextsBulkUpdateOK() *DcimVirtualDeviceContextsBulkUpdateOK { + return &DcimVirtualDeviceContextsBulkUpdateOK{} +} + +/* +DcimVirtualDeviceContextsBulkUpdateOK describes a response with status code 200, with default header values. + +DcimVirtualDeviceContextsBulkUpdateOK dcim virtual device contexts bulk update o k +*/ +type DcimVirtualDeviceContextsBulkUpdateOK struct { + Payload *models.VirtualDeviceContext +} + +// IsSuccess returns true when this dcim virtual device contexts bulk update o k response has a 2xx status code +func (o *DcimVirtualDeviceContextsBulkUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts bulk update o k response has a 3xx status code +func (o *DcimVirtualDeviceContextsBulkUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts bulk update o k response has a 4xx status code +func (o *DcimVirtualDeviceContextsBulkUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts bulk update o k response has a 5xx status code +func (o *DcimVirtualDeviceContextsBulkUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts bulk update o k response a status code equal to that given +func (o *DcimVirtualDeviceContextsBulkUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *DcimVirtualDeviceContextsBulkUpdateOK) Error() string { + return fmt.Sprintf("[PUT /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsBulkUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsBulkUpdateOK) String() string { + return fmt.Sprintf("[PUT /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsBulkUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsBulkUpdateOK) GetPayload() *models.VirtualDeviceContext { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsBulkUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.VirtualDeviceContext) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_create_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_create_parameters.go new file mode 100644 index 00000000..38e69326 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_create_parameters.go @@ -0,0 +1,165 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewDcimVirtualDeviceContextsCreateParams creates a new DcimVirtualDeviceContextsCreateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsCreateParams() *DcimVirtualDeviceContextsCreateParams { + return &DcimVirtualDeviceContextsCreateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsCreateParamsWithTimeout creates a new DcimVirtualDeviceContextsCreateParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsCreateParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsCreateParams { + return &DcimVirtualDeviceContextsCreateParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsCreateParamsWithContext creates a new DcimVirtualDeviceContextsCreateParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsCreateParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsCreateParams { + return &DcimVirtualDeviceContextsCreateParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsCreateParamsWithHTTPClient creates a new DcimVirtualDeviceContextsCreateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsCreateParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsCreateParams { + return &DcimVirtualDeviceContextsCreateParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsCreateParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts create operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsCreateParams struct { + + // Data. + Data *models.WritableVirtualDeviceContext + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts create params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsCreateParams) WithDefaults() *DcimVirtualDeviceContextsCreateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts create params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsCreateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsCreateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsCreateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsCreateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) WithData(data *models.WritableVirtualDeviceContext) *DcimVirtualDeviceContextsCreateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the dcim virtual device contexts create params +func (o *DcimVirtualDeviceContextsCreateParams) SetData(data *models.WritableVirtualDeviceContext) { + o.Data = data +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_create_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_create_responses.go new file mode 100644 index 00000000..95664399 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_create_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsCreateReader is a Reader for the DcimVirtualDeviceContextsCreate structure. +type DcimVirtualDeviceContextsCreateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewDcimVirtualDeviceContextsCreateCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsCreateCreated creates a DcimVirtualDeviceContextsCreateCreated with default headers values +func NewDcimVirtualDeviceContextsCreateCreated() *DcimVirtualDeviceContextsCreateCreated { + return &DcimVirtualDeviceContextsCreateCreated{} +} + +/* +DcimVirtualDeviceContextsCreateCreated describes a response with status code 201, with default header values. + +DcimVirtualDeviceContextsCreateCreated dcim virtual device contexts create created +*/ +type DcimVirtualDeviceContextsCreateCreated struct { + Payload *models.VirtualDeviceContext +} + +// IsSuccess returns true when this dcim virtual device contexts create created response has a 2xx status code +func (o *DcimVirtualDeviceContextsCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts create created response has a 3xx status code +func (o *DcimVirtualDeviceContextsCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts create created response has a 4xx status code +func (o *DcimVirtualDeviceContextsCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts create created response has a 5xx status code +func (o *DcimVirtualDeviceContextsCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts create created response a status code equal to that given +func (o *DcimVirtualDeviceContextsCreateCreated) IsCode(code int) bool { + return code == 201 +} + +func (o *DcimVirtualDeviceContextsCreateCreated) Error() string { + return fmt.Sprintf("[POST /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsCreateCreated %+v", 201, o.Payload) +} + +func (o *DcimVirtualDeviceContextsCreateCreated) String() string { + return fmt.Sprintf("[POST /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsCreateCreated %+v", 201, o.Payload) +} + +func (o *DcimVirtualDeviceContextsCreateCreated) GetPayload() *models.VirtualDeviceContext { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.VirtualDeviceContext) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_delete_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_delete_parameters.go new file mode 100644 index 00000000..26a2536a --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_delete_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewDcimVirtualDeviceContextsDeleteParams creates a new DcimVirtualDeviceContextsDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsDeleteParams() *DcimVirtualDeviceContextsDeleteParams { + return &DcimVirtualDeviceContextsDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsDeleteParamsWithTimeout creates a new DcimVirtualDeviceContextsDeleteParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsDeleteParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsDeleteParams { + return &DcimVirtualDeviceContextsDeleteParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsDeleteParamsWithContext creates a new DcimVirtualDeviceContextsDeleteParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsDeleteParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsDeleteParams { + return &DcimVirtualDeviceContextsDeleteParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsDeleteParamsWithHTTPClient creates a new DcimVirtualDeviceContextsDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsDeleteParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsDeleteParams { + return &DcimVirtualDeviceContextsDeleteParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsDeleteParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts delete operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsDeleteParams struct { + + /* ID. + + A unique integer value identifying this virtual device context. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsDeleteParams) WithDefaults() *DcimVirtualDeviceContextsDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) WithID(id int64) *DcimVirtualDeviceContextsDeleteParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim virtual device contexts delete params +func (o *DcimVirtualDeviceContextsDeleteParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_delete_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_delete_responses.go new file mode 100644 index 00000000..2744e2d0 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_delete_responses.go @@ -0,0 +1,98 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DcimVirtualDeviceContextsDeleteReader is a Reader for the DcimVirtualDeviceContextsDelete structure. +type DcimVirtualDeviceContextsDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDcimVirtualDeviceContextsDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsDeleteNoContent creates a DcimVirtualDeviceContextsDeleteNoContent with default headers values +func NewDcimVirtualDeviceContextsDeleteNoContent() *DcimVirtualDeviceContextsDeleteNoContent { + return &DcimVirtualDeviceContextsDeleteNoContent{} +} + +/* +DcimVirtualDeviceContextsDeleteNoContent describes a response with status code 204, with default header values. + +DcimVirtualDeviceContextsDeleteNoContent dcim virtual device contexts delete no content +*/ +type DcimVirtualDeviceContextsDeleteNoContent struct { +} + +// IsSuccess returns true when this dcim virtual device contexts delete no content response has a 2xx status code +func (o *DcimVirtualDeviceContextsDeleteNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts delete no content response has a 3xx status code +func (o *DcimVirtualDeviceContextsDeleteNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts delete no content response has a 4xx status code +func (o *DcimVirtualDeviceContextsDeleteNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts delete no content response has a 5xx status code +func (o *DcimVirtualDeviceContextsDeleteNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts delete no content response a status code equal to that given +func (o *DcimVirtualDeviceContextsDeleteNoContent) IsCode(code int) bool { + return code == 204 +} + +func (o *DcimVirtualDeviceContextsDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsDeleteNoContent ", 204) +} + +func (o *DcimVirtualDeviceContextsDeleteNoContent) String() string { + return fmt.Sprintf("[DELETE /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsDeleteNoContent ", 204) +} + +func (o *DcimVirtualDeviceContextsDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_list_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_list_parameters.go new file mode 100644 index 00000000..bca9d8a2 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_list_parameters.go @@ -0,0 +1,1704 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewDcimVirtualDeviceContextsListParams creates a new DcimVirtualDeviceContextsListParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsListParams() *DcimVirtualDeviceContextsListParams { + return &DcimVirtualDeviceContextsListParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsListParamsWithTimeout creates a new DcimVirtualDeviceContextsListParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsListParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsListParams { + return &DcimVirtualDeviceContextsListParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsListParamsWithContext creates a new DcimVirtualDeviceContextsListParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsListParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsListParams { + return &DcimVirtualDeviceContextsListParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsListParamsWithHTTPClient creates a new DcimVirtualDeviceContextsListParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsListParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsListParams { + return &DcimVirtualDeviceContextsListParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsListParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts list operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsListParams struct { + + // Created. + Created *string + + // CreatedGt. + CreatedGt *string + + // CreatedGte. + CreatedGte *string + + // CreatedLt. + CreatedLt *string + + // CreatedLte. + CreatedLte *string + + // Createdn. + Createdn *string + + // Device. + Device *string + + // Devicen. + Devicen *string + + // DeviceID. + DeviceID *string + + // DeviceIDn. + DeviceIDn *string + + // HasPrimaryIP. + HasPrimaryIP *string + + // ID. + ID *string + + // IDGt. + IDGt *string + + // IDGte. + IDGte *string + + // IDLt. + IDLt *string + + // IDLte. + IDLte *string + + // IDn. + IDn *string + + // LastUpdated. + LastUpdated *string + + // LastUpdatedGt. + LastUpdatedGt *string + + // LastUpdatedGte. + LastUpdatedGte *string + + // LastUpdatedLt. + LastUpdatedLt *string + + // LastUpdatedLte. + LastUpdatedLte *string + + // LastUpdatedn. + LastUpdatedn *string + + /* Limit. + + Number of results to return per page. + */ + Limit *int64 + + // Name. + Name *string + + // NameEmpty. + NameEmpty *string + + // NameIc. + NameIc *string + + // NameIe. + NameIe *string + + // NameIew. + NameIew *string + + // NameIsw. + NameIsw *string + + // Namen. + Namen *string + + // NameNic. + NameNic *string + + // NameNie. + NameNie *string + + // NameNiew. + NameNiew *string + + // NameNisw. + NameNisw *string + + /* Offset. + + The initial index from which to return the results. + */ + Offset *int64 + + /* Ordering. + + Which field to use when ordering the results. + */ + Ordering *string + + // Q. + Q *string + + // Status. + Status *string + + // Statusn. + Statusn *string + + // Tag. + Tag *string + + // Tagn. + Tagn *string + + // Tenant. + Tenant *string + + // Tenantn. + Tenantn *string + + // TenantGroup. + TenantGroup *string + + // TenantGroupn. + TenantGroupn *string + + // TenantGroupID. + TenantGroupID *string + + // TenantGroupIDn. + TenantGroupIDn *string + + // TenantID. + TenantID *string + + // TenantIDn. + TenantIDn *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsListParams) WithDefaults() *DcimVirtualDeviceContextsListParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsListParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithCreated adds the created to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithCreated(created *string) *DcimVirtualDeviceContextsListParams { + o.SetCreated(created) + return o +} + +// SetCreated adds the created to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetCreated(created *string) { + o.Created = created +} + +// WithCreatedGt adds the createdGt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithCreatedGt(createdGt *string) *DcimVirtualDeviceContextsListParams { + o.SetCreatedGt(createdGt) + return o +} + +// SetCreatedGt adds the createdGt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetCreatedGt(createdGt *string) { + o.CreatedGt = createdGt +} + +// WithCreatedGte adds the createdGte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithCreatedGte(createdGte *string) *DcimVirtualDeviceContextsListParams { + o.SetCreatedGte(createdGte) + return o +} + +// SetCreatedGte adds the createdGte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetCreatedGte(createdGte *string) { + o.CreatedGte = createdGte +} + +// WithCreatedLt adds the createdLt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithCreatedLt(createdLt *string) *DcimVirtualDeviceContextsListParams { + o.SetCreatedLt(createdLt) + return o +} + +// SetCreatedLt adds the createdLt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetCreatedLt(createdLt *string) { + o.CreatedLt = createdLt +} + +// WithCreatedLte adds the createdLte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithCreatedLte(createdLte *string) *DcimVirtualDeviceContextsListParams { + o.SetCreatedLte(createdLte) + return o +} + +// SetCreatedLte adds the createdLte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetCreatedLte(createdLte *string) { + o.CreatedLte = createdLte +} + +// WithCreatedn adds the createdn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithCreatedn(createdn *string) *DcimVirtualDeviceContextsListParams { + o.SetCreatedn(createdn) + return o +} + +// SetCreatedn adds the createdN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetCreatedn(createdn *string) { + o.Createdn = createdn +} + +// WithDevice adds the device to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithDevice(device *string) *DcimVirtualDeviceContextsListParams { + o.SetDevice(device) + return o +} + +// SetDevice adds the device to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetDevice(device *string) { + o.Device = device +} + +// WithDevicen adds the devicen to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithDevicen(devicen *string) *DcimVirtualDeviceContextsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + +// WithDeviceID adds the deviceID to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithDeviceID(deviceID *string) *DcimVirtualDeviceContextsListParams { + o.SetDeviceID(deviceID) + return o +} + +// SetDeviceID adds the deviceId to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetDeviceID(deviceID *string) { + o.DeviceID = deviceID +} + +// WithDeviceIDn adds the deviceIDn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithDeviceIDn(deviceIDn *string) *DcimVirtualDeviceContextsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + +// WithHasPrimaryIP adds the hasPrimaryIP to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithHasPrimaryIP(hasPrimaryIP *string) *DcimVirtualDeviceContextsListParams { + o.SetHasPrimaryIP(hasPrimaryIP) + return o +} + +// SetHasPrimaryIP adds the hasPrimaryIp to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetHasPrimaryIP(hasPrimaryIP *string) { + o.HasPrimaryIP = hasPrimaryIP +} + +// WithID adds the id to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithID(id *string) *DcimVirtualDeviceContextsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithIDGt(iDGt *string) *DcimVirtualDeviceContextsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithIDGte(iDGte *string) *DcimVirtualDeviceContextsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithIDLt(iDLt *string) *DcimVirtualDeviceContextsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithIDLte(iDLte *string) *DcimVirtualDeviceContextsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithIDn(iDn *string) *DcimVirtualDeviceContextsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + +// WithLastUpdated adds the lastUpdated to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLastUpdated(lastUpdated *string) *DcimVirtualDeviceContextsListParams { + o.SetLastUpdated(lastUpdated) + return o +} + +// SetLastUpdated adds the lastUpdated to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLastUpdated(lastUpdated *string) { + o.LastUpdated = lastUpdated +} + +// WithLastUpdatedGt adds the lastUpdatedGt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLastUpdatedGt(lastUpdatedGt *string) *DcimVirtualDeviceContextsListParams { + o.SetLastUpdatedGt(lastUpdatedGt) + return o +} + +// SetLastUpdatedGt adds the lastUpdatedGt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLastUpdatedGt(lastUpdatedGt *string) { + o.LastUpdatedGt = lastUpdatedGt +} + +// WithLastUpdatedGte adds the lastUpdatedGte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLastUpdatedGte(lastUpdatedGte *string) *DcimVirtualDeviceContextsListParams { + o.SetLastUpdatedGte(lastUpdatedGte) + return o +} + +// SetLastUpdatedGte adds the lastUpdatedGte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLastUpdatedGte(lastUpdatedGte *string) { + o.LastUpdatedGte = lastUpdatedGte +} + +// WithLastUpdatedLt adds the lastUpdatedLt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLastUpdatedLt(lastUpdatedLt *string) *DcimVirtualDeviceContextsListParams { + o.SetLastUpdatedLt(lastUpdatedLt) + return o +} + +// SetLastUpdatedLt adds the lastUpdatedLt to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLastUpdatedLt(lastUpdatedLt *string) { + o.LastUpdatedLt = lastUpdatedLt +} + +// WithLastUpdatedLte adds the lastUpdatedLte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLastUpdatedLte(lastUpdatedLte *string) *DcimVirtualDeviceContextsListParams { + o.SetLastUpdatedLte(lastUpdatedLte) + return o +} + +// SetLastUpdatedLte adds the lastUpdatedLte to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLastUpdatedLte(lastUpdatedLte *string) { + o.LastUpdatedLte = lastUpdatedLte +} + +// WithLastUpdatedn adds the lastUpdatedn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLastUpdatedn(lastUpdatedn *string) *DcimVirtualDeviceContextsListParams { + o.SetLastUpdatedn(lastUpdatedn) + return o +} + +// SetLastUpdatedn adds the lastUpdatedN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLastUpdatedn(lastUpdatedn *string) { + o.LastUpdatedn = lastUpdatedn +} + +// WithLimit adds the limit to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithLimit(limit *int64) *DcimVirtualDeviceContextsListParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithName adds the name to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithName(name *string) *DcimVirtualDeviceContextsListParams { + o.SetName(name) + return o +} + +// SetName adds the name to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetName(name *string) { + o.Name = name +} + +// WithNameEmpty adds the nameEmpty to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameEmpty(nameEmpty *string) *DcimVirtualDeviceContextsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + +// WithNameIc adds the nameIc to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameIc(nameIc *string) *DcimVirtualDeviceContextsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameIe(nameIe *string) *DcimVirtualDeviceContextsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameIew(nameIew *string) *DcimVirtualDeviceContextsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameIsw(nameIsw *string) *DcimVirtualDeviceContextsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNamen(namen *string) *DcimVirtualDeviceContextsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameNic(nameNic *string) *DcimVirtualDeviceContextsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameNie(nameNie *string) *DcimVirtualDeviceContextsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameNiew(nameNiew *string) *DcimVirtualDeviceContextsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithNameNisw(nameNisw *string) *DcimVirtualDeviceContextsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + +// WithOffset adds the offset to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithOffset(offset *int64) *DcimVirtualDeviceContextsListParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WithOrdering adds the ordering to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithOrdering(ordering *string) *DcimVirtualDeviceContextsListParams { + o.SetOrdering(ordering) + return o +} + +// SetOrdering adds the ordering to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetOrdering(ordering *string) { + o.Ordering = ordering +} + +// WithQ adds the q to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithQ(q *string) *DcimVirtualDeviceContextsListParams { + o.SetQ(q) + return o +} + +// SetQ adds the q to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetQ(q *string) { + o.Q = q +} + +// WithStatus adds the status to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithStatus(status *string) *DcimVirtualDeviceContextsListParams { + o.SetStatus(status) + return o +} + +// SetStatus adds the status to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetStatus(status *string) { + o.Status = status +} + +// WithStatusn adds the statusn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithStatusn(statusn *string) *DcimVirtualDeviceContextsListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + +// WithTag adds the tag to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTag(tag *string) *DcimVirtualDeviceContextsListParams { + o.SetTag(tag) + return o +} + +// SetTag adds the tag to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTag(tag *string) { + o.Tag = tag +} + +// WithTagn adds the tagn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTagn(tagn *string) *DcimVirtualDeviceContextsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + +// WithTenant adds the tenant to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenant(tenant *string) *DcimVirtualDeviceContextsListParams { + o.SetTenant(tenant) + return o +} + +// SetTenant adds the tenant to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenant(tenant *string) { + o.Tenant = tenant +} + +// WithTenantn adds the tenantn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantn(tenantn *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + +// WithTenantGroup adds the tenantGroup to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantGroup(tenantGroup *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantGroup(tenantGroup) + return o +} + +// SetTenantGroup adds the tenantGroup to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantGroup(tenantGroup *string) { + o.TenantGroup = tenantGroup +} + +// WithTenantGroupn adds the tenantGroupn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantGroupn(tenantGroupn *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + +// WithTenantGroupID adds the tenantGroupID to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantGroupID(tenantGroupID *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantGroupID(tenantGroupID) + return o +} + +// SetTenantGroupID adds the tenantGroupId to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantGroupID(tenantGroupID *string) { + o.TenantGroupID = tenantGroupID +} + +// WithTenantGroupIDn adds the tenantGroupIDn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantGroupIDn(tenantGroupIDn *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + +// WithTenantID adds the tenantID to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantID(tenantID *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantID(tenantID) + return o +} + +// SetTenantID adds the tenantId to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantID(tenantID *string) { + o.TenantID = tenantID +} + +// WithTenantIDn adds the tenantIDn to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) WithTenantIDn(tenantIDn *string) *DcimVirtualDeviceContextsListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the dcim virtual device contexts list params +func (o *DcimVirtualDeviceContextsListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Created != nil { + + // query param created + var qrCreated string + + if o.Created != nil { + qrCreated = *o.Created + } + qCreated := qrCreated + if qCreated != "" { + + if err := r.SetQueryParam("created", qCreated); err != nil { + return err + } + } + } + + if o.CreatedGt != nil { + + // query param created__gt + var qrCreatedGt string + + if o.CreatedGt != nil { + qrCreatedGt = *o.CreatedGt + } + qCreatedGt := qrCreatedGt + if qCreatedGt != "" { + + if err := r.SetQueryParam("created__gt", qCreatedGt); err != nil { + return err + } + } + } + + if o.CreatedGte != nil { + + // query param created__gte + var qrCreatedGte string + + if o.CreatedGte != nil { + qrCreatedGte = *o.CreatedGte + } + qCreatedGte := qrCreatedGte + if qCreatedGte != "" { + + if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { + return err + } + } + } + + if o.CreatedLt != nil { + + // query param created__lt + var qrCreatedLt string + + if o.CreatedLt != nil { + qrCreatedLt = *o.CreatedLt + } + qCreatedLt := qrCreatedLt + if qCreatedLt != "" { + + if err := r.SetQueryParam("created__lt", qCreatedLt); err != nil { + return err + } + } + } + + if o.CreatedLte != nil { + + // query param created__lte + var qrCreatedLte string + + if o.CreatedLte != nil { + qrCreatedLte = *o.CreatedLte + } + qCreatedLte := qrCreatedLte + if qCreatedLte != "" { + + if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { + return err + } + } + } + + if o.Createdn != nil { + + // query param created__n + var qrCreatedn string + + if o.Createdn != nil { + qrCreatedn = *o.Createdn + } + qCreatedn := qrCreatedn + if qCreatedn != "" { + + if err := r.SetQueryParam("created__n", qCreatedn); err != nil { + return err + } + } + } + + if o.Device != nil { + + // query param device + var qrDevice string + + if o.Device != nil { + qrDevice = *o.Device + } + qDevice := qrDevice + if qDevice != "" { + + if err := r.SetQueryParam("device", qDevice); err != nil { + return err + } + } + } + + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + } + + if o.DeviceID != nil { + + // query param device_id + var qrDeviceID string + + if o.DeviceID != nil { + qrDeviceID = *o.DeviceID + } + qDeviceID := qrDeviceID + if qDeviceID != "" { + + if err := r.SetQueryParam("device_id", qDeviceID); err != nil { + return err + } + } + } + + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + } + + if o.HasPrimaryIP != nil { + + // query param has_primary_ip + var qrHasPrimaryIP string + + if o.HasPrimaryIP != nil { + qrHasPrimaryIP = *o.HasPrimaryIP + } + qHasPrimaryIP := qrHasPrimaryIP + if qHasPrimaryIP != "" { + + if err := r.SetQueryParam("has_primary_ip", qHasPrimaryIP); err != nil { + return err + } + } + } + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + } + + if o.LastUpdated != nil { + + // query param last_updated + var qrLastUpdated string + + if o.LastUpdated != nil { + qrLastUpdated = *o.LastUpdated + } + qLastUpdated := qrLastUpdated + if qLastUpdated != "" { + + if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + return err + } + } + } + + if o.LastUpdatedGt != nil { + + // query param last_updated__gt + var qrLastUpdatedGt string + + if o.LastUpdatedGt != nil { + qrLastUpdatedGt = *o.LastUpdatedGt + } + qLastUpdatedGt := qrLastUpdatedGt + if qLastUpdatedGt != "" { + + if err := r.SetQueryParam("last_updated__gt", qLastUpdatedGt); err != nil { + return err + } + } + } + + if o.LastUpdatedGte != nil { + + // query param last_updated__gte + var qrLastUpdatedGte string + + if o.LastUpdatedGte != nil { + qrLastUpdatedGte = *o.LastUpdatedGte + } + qLastUpdatedGte := qrLastUpdatedGte + if qLastUpdatedGte != "" { + + if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { + return err + } + } + } + + if o.LastUpdatedLt != nil { + + // query param last_updated__lt + var qrLastUpdatedLt string + + if o.LastUpdatedLt != nil { + qrLastUpdatedLt = *o.LastUpdatedLt + } + qLastUpdatedLt := qrLastUpdatedLt + if qLastUpdatedLt != "" { + + if err := r.SetQueryParam("last_updated__lt", qLastUpdatedLt); err != nil { + return err + } + } + } + + if o.LastUpdatedLte != nil { + + // query param last_updated__lte + var qrLastUpdatedLte string + + if o.LastUpdatedLte != nil { + qrLastUpdatedLte = *o.LastUpdatedLte + } + qLastUpdatedLte := qrLastUpdatedLte + if qLastUpdatedLte != "" { + + if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { + return err + } + } + } + + if o.LastUpdatedn != nil { + + // query param last_updated__n + var qrLastUpdatedn string + + if o.LastUpdatedn != nil { + qrLastUpdatedn = *o.LastUpdatedn + } + qLastUpdatedn := qrLastUpdatedn + if qLastUpdatedn != "" { + + if err := r.SetQueryParam("last_updated__n", qLastUpdatedn); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { + return err + } + } + } + + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if o.Ordering != nil { + + // query param ordering + var qrOrdering string + + if o.Ordering != nil { + qrOrdering = *o.Ordering + } + qOrdering := qrOrdering + if qOrdering != "" { + + if err := r.SetQueryParam("ordering", qOrdering); err != nil { + return err + } + } + } + + if o.Q != nil { + + // query param q + var qrQ string + + if o.Q != nil { + qrQ = *o.Q + } + qQ := qrQ + if qQ != "" { + + if err := r.SetQueryParam("q", qQ); err != nil { + return err + } + } + } + + if o.Status != nil { + + // query param status + var qrStatus string + + if o.Status != nil { + qrStatus = *o.Status + } + qStatus := qrStatus + if qStatus != "" { + + if err := r.SetQueryParam("status", qStatus); err != nil { + return err + } + } + } + + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + } + + if o.Tag != nil { + + // query param tag + var qrTag string + + if o.Tag != nil { + qrTag = *o.Tag + } + qTag := qrTag + if qTag != "" { + + if err := r.SetQueryParam("tag", qTag); err != nil { + return err + } + } + } + + if o.Tagn != nil { + + // query param tag__n + var qrTagn string + + if o.Tagn != nil { + qrTagn = *o.Tagn + } + qTagn := qrTagn + if qTagn != "" { + + if err := r.SetQueryParam("tag__n", qTagn); err != nil { + return err + } + } + } + + if o.Tenant != nil { + + // query param tenant + var qrTenant string + + if o.Tenant != nil { + qrTenant = *o.Tenant + } + qTenant := qrTenant + if qTenant != "" { + + if err := r.SetQueryParam("tenant", qTenant); err != nil { + return err + } + } + } + + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + } + + if o.TenantGroup != nil { + + // query param tenant_group + var qrTenantGroup string + + if o.TenantGroup != nil { + qrTenantGroup = *o.TenantGroup + } + qTenantGroup := qrTenantGroup + if qTenantGroup != "" { + + if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil { + return err + } + } + } + + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + } + + if o.TenantGroupID != nil { + + // query param tenant_group_id + var qrTenantGroupID string + + if o.TenantGroupID != nil { + qrTenantGroupID = *o.TenantGroupID + } + qTenantGroupID := qrTenantGroupID + if qTenantGroupID != "" { + + if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil { + return err + } + } + } + + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + } + + if o.TenantID != nil { + + // query param tenant_id + var qrTenantID string + + if o.TenantID != nil { + qrTenantID = *o.TenantID + } + qTenantID := qrTenantID + if qTenantID != "" { + + if err := r.SetQueryParam("tenant_id", qTenantID); err != nil { + return err + } + } + } + + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_list_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_list_responses.go new file mode 100644 index 00000000..e0759f41 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_list_responses.go @@ -0,0 +1,279 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "fmt" + "io" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsListReader is a Reader for the DcimVirtualDeviceContextsList structure. +type DcimVirtualDeviceContextsListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDcimVirtualDeviceContextsListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsListOK creates a DcimVirtualDeviceContextsListOK with default headers values +func NewDcimVirtualDeviceContextsListOK() *DcimVirtualDeviceContextsListOK { + return &DcimVirtualDeviceContextsListOK{} +} + +/* +DcimVirtualDeviceContextsListOK describes a response with status code 200, with default header values. + +DcimVirtualDeviceContextsListOK dcim virtual device contexts list o k +*/ +type DcimVirtualDeviceContextsListOK struct { + Payload *DcimVirtualDeviceContextsListOKBody +} + +// IsSuccess returns true when this dcim virtual device contexts list o k response has a 2xx status code +func (o *DcimVirtualDeviceContextsListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts list o k response has a 3xx status code +func (o *DcimVirtualDeviceContextsListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts list o k response has a 4xx status code +func (o *DcimVirtualDeviceContextsListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts list o k response has a 5xx status code +func (o *DcimVirtualDeviceContextsListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts list o k response a status code equal to that given +func (o *DcimVirtualDeviceContextsListOK) IsCode(code int) bool { + return code == 200 +} + +func (o *DcimVirtualDeviceContextsListOK) Error() string { + return fmt.Sprintf("[GET /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsListOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsListOK) String() string { + return fmt.Sprintf("[GET /dcim/virtual-device-contexts/][%d] dcimVirtualDeviceContextsListOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsListOK) GetPayload() *DcimVirtualDeviceContextsListOKBody { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(DcimVirtualDeviceContextsListOKBody) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +/* +DcimVirtualDeviceContextsListOKBody dcim virtual device contexts list o k body +swagger:model DcimVirtualDeviceContextsListOKBody +*/ +type DcimVirtualDeviceContextsListOKBody struct { + + // count + // Required: true + Count *int64 `json:"count"` + + // next + // Format: uri + Next *strfmt.URI `json:"next,omitempty"` + + // previous + // Format: uri + Previous *strfmt.URI `json:"previous,omitempty"` + + // results + // Required: true + Results []*models.VirtualDeviceContext `json:"results"` +} + +// Validate validates this dcim virtual device contexts list o k body +func (o *DcimVirtualDeviceContextsListOKBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateCount(formats); err != nil { + res = append(res, err) + } + + if err := o.validateNext(formats); err != nil { + res = append(res, err) + } + + if err := o.validatePrevious(formats); err != nil { + res = append(res, err) + } + + if err := o.validateResults(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *DcimVirtualDeviceContextsListOKBody) validateCount(formats strfmt.Registry) error { + + if err := validate.Required("dcimVirtualDeviceContextsListOK"+"."+"count", "body", o.Count); err != nil { + return err + } + + return nil +} + +func (o *DcimVirtualDeviceContextsListOKBody) validateNext(formats strfmt.Registry) error { + if swag.IsZero(o.Next) { // not required + return nil + } + + if err := validate.FormatOf("dcimVirtualDeviceContextsListOK"+"."+"next", "body", "uri", o.Next.String(), formats); err != nil { + return err + } + + return nil +} + +func (o *DcimVirtualDeviceContextsListOKBody) validatePrevious(formats strfmt.Registry) error { + if swag.IsZero(o.Previous) { // not required + return nil + } + + if err := validate.FormatOf("dcimVirtualDeviceContextsListOK"+"."+"previous", "body", "uri", o.Previous.String(), formats); err != nil { + return err + } + + return nil +} + +func (o *DcimVirtualDeviceContextsListOKBody) validateResults(formats strfmt.Registry) error { + + if err := validate.Required("dcimVirtualDeviceContextsListOK"+"."+"results", "body", o.Results); err != nil { + return err + } + + for i := 0; i < len(o.Results); i++ { + if swag.IsZero(o.Results[i]) { // not required + continue + } + + if o.Results[i] != nil { + if err := o.Results[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("dcimVirtualDeviceContextsListOK" + "." + "results" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("dcimVirtualDeviceContextsListOK" + "." + "results" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this dcim virtual device contexts list o k body based on the context it is used +func (o *DcimVirtualDeviceContextsListOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateResults(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *DcimVirtualDeviceContextsListOKBody) contextValidateResults(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(o.Results); i++ { + + if o.Results[i] != nil { + if err := o.Results[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("dcimVirtualDeviceContextsListOK" + "." + "results" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("dcimVirtualDeviceContextsListOK" + "." + "results" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (o *DcimVirtualDeviceContextsListOKBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *DcimVirtualDeviceContextsListOKBody) UnmarshalBinary(b []byte) error { + var res DcimVirtualDeviceContextsListOKBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_partial_update_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_partial_update_parameters.go new file mode 100644 index 00000000..a963095e --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_partial_update_parameters.go @@ -0,0 +1,188 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewDcimVirtualDeviceContextsPartialUpdateParams creates a new DcimVirtualDeviceContextsPartialUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsPartialUpdateParams() *DcimVirtualDeviceContextsPartialUpdateParams { + return &DcimVirtualDeviceContextsPartialUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsPartialUpdateParamsWithTimeout creates a new DcimVirtualDeviceContextsPartialUpdateParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsPartialUpdateParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsPartialUpdateParams { + return &DcimVirtualDeviceContextsPartialUpdateParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsPartialUpdateParamsWithContext creates a new DcimVirtualDeviceContextsPartialUpdateParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsPartialUpdateParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsPartialUpdateParams { + return &DcimVirtualDeviceContextsPartialUpdateParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsPartialUpdateParamsWithHTTPClient creates a new DcimVirtualDeviceContextsPartialUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsPartialUpdateParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsPartialUpdateParams { + return &DcimVirtualDeviceContextsPartialUpdateParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsPartialUpdateParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts partial update operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsPartialUpdateParams struct { + + // Data. + Data *models.WritableVirtualDeviceContext + + /* ID. + + A unique integer value identifying this virtual device context. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WithDefaults() *DcimVirtualDeviceContextsPartialUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsPartialUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsPartialUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsPartialUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsPartialUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WithData(data *models.WritableVirtualDeviceContext) *DcimVirtualDeviceContextsPartialUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) SetData(data *models.WritableVirtualDeviceContext) { + o.Data = data +} + +// WithID adds the id to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WithID(id int64) *DcimVirtualDeviceContextsPartialUpdateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim virtual device contexts partial update params +func (o *DcimVirtualDeviceContextsPartialUpdateParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_partial_update_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_partial_update_responses.go new file mode 100644 index 00000000..f0a21387 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_partial_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsPartialUpdateReader is a Reader for the DcimVirtualDeviceContextsPartialUpdate structure. +type DcimVirtualDeviceContextsPartialUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsPartialUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDcimVirtualDeviceContextsPartialUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsPartialUpdateOK creates a DcimVirtualDeviceContextsPartialUpdateOK with default headers values +func NewDcimVirtualDeviceContextsPartialUpdateOK() *DcimVirtualDeviceContextsPartialUpdateOK { + return &DcimVirtualDeviceContextsPartialUpdateOK{} +} + +/* +DcimVirtualDeviceContextsPartialUpdateOK describes a response with status code 200, with default header values. + +DcimVirtualDeviceContextsPartialUpdateOK dcim virtual device contexts partial update o k +*/ +type DcimVirtualDeviceContextsPartialUpdateOK struct { + Payload *models.VirtualDeviceContext +} + +// IsSuccess returns true when this dcim virtual device contexts partial update o k response has a 2xx status code +func (o *DcimVirtualDeviceContextsPartialUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts partial update o k response has a 3xx status code +func (o *DcimVirtualDeviceContextsPartialUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts partial update o k response has a 4xx status code +func (o *DcimVirtualDeviceContextsPartialUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts partial update o k response has a 5xx status code +func (o *DcimVirtualDeviceContextsPartialUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts partial update o k response a status code equal to that given +func (o *DcimVirtualDeviceContextsPartialUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *DcimVirtualDeviceContextsPartialUpdateOK) Error() string { + return fmt.Sprintf("[PATCH /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsPartialUpdateOK) String() string { + return fmt.Sprintf("[PATCH /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsPartialUpdateOK) GetPayload() *models.VirtualDeviceContext { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsPartialUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.VirtualDeviceContext) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_read_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_read_parameters.go new file mode 100644 index 00000000..086fa666 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_read_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewDcimVirtualDeviceContextsReadParams creates a new DcimVirtualDeviceContextsReadParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsReadParams() *DcimVirtualDeviceContextsReadParams { + return &DcimVirtualDeviceContextsReadParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsReadParamsWithTimeout creates a new DcimVirtualDeviceContextsReadParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsReadParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsReadParams { + return &DcimVirtualDeviceContextsReadParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsReadParamsWithContext creates a new DcimVirtualDeviceContextsReadParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsReadParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsReadParams { + return &DcimVirtualDeviceContextsReadParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsReadParamsWithHTTPClient creates a new DcimVirtualDeviceContextsReadParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsReadParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsReadParams { + return &DcimVirtualDeviceContextsReadParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsReadParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts read operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsReadParams struct { + + /* ID. + + A unique integer value identifying this virtual device context. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts read params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsReadParams) WithDefaults() *DcimVirtualDeviceContextsReadParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts read params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsReadParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsReadParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsReadParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsReadParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) WithID(id int64) *DcimVirtualDeviceContextsReadParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim virtual device contexts read params +func (o *DcimVirtualDeviceContextsReadParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_read_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_read_responses.go new file mode 100644 index 00000000..355bb35c --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_read_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsReadReader is a Reader for the DcimVirtualDeviceContextsRead structure. +type DcimVirtualDeviceContextsReadReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDcimVirtualDeviceContextsReadOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsReadOK creates a DcimVirtualDeviceContextsReadOK with default headers values +func NewDcimVirtualDeviceContextsReadOK() *DcimVirtualDeviceContextsReadOK { + return &DcimVirtualDeviceContextsReadOK{} +} + +/* +DcimVirtualDeviceContextsReadOK describes a response with status code 200, with default header values. + +DcimVirtualDeviceContextsReadOK dcim virtual device contexts read o k +*/ +type DcimVirtualDeviceContextsReadOK struct { + Payload *models.VirtualDeviceContext +} + +// IsSuccess returns true when this dcim virtual device contexts read o k response has a 2xx status code +func (o *DcimVirtualDeviceContextsReadOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts read o k response has a 3xx status code +func (o *DcimVirtualDeviceContextsReadOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts read o k response has a 4xx status code +func (o *DcimVirtualDeviceContextsReadOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts read o k response has a 5xx status code +func (o *DcimVirtualDeviceContextsReadOK) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts read o k response a status code equal to that given +func (o *DcimVirtualDeviceContextsReadOK) IsCode(code int) bool { + return code == 200 +} + +func (o *DcimVirtualDeviceContextsReadOK) Error() string { + return fmt.Sprintf("[GET /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsReadOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsReadOK) String() string { + return fmt.Sprintf("[GET /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsReadOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsReadOK) GetPayload() *models.VirtualDeviceContext { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsReadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.VirtualDeviceContext) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_update_parameters.go b/netbox/client/dcim/dcim_virtual_device_contexts_update_parameters.go new file mode 100644 index 00000000..d37486f6 --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_update_parameters.go @@ -0,0 +1,188 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewDcimVirtualDeviceContextsUpdateParams creates a new DcimVirtualDeviceContextsUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDcimVirtualDeviceContextsUpdateParams() *DcimVirtualDeviceContextsUpdateParams { + return &DcimVirtualDeviceContextsUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDcimVirtualDeviceContextsUpdateParamsWithTimeout creates a new DcimVirtualDeviceContextsUpdateParams object +// with the ability to set a timeout on a request. +func NewDcimVirtualDeviceContextsUpdateParamsWithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsUpdateParams { + return &DcimVirtualDeviceContextsUpdateParams{ + timeout: timeout, + } +} + +// NewDcimVirtualDeviceContextsUpdateParamsWithContext creates a new DcimVirtualDeviceContextsUpdateParams object +// with the ability to set a context for a request. +func NewDcimVirtualDeviceContextsUpdateParamsWithContext(ctx context.Context) *DcimVirtualDeviceContextsUpdateParams { + return &DcimVirtualDeviceContextsUpdateParams{ + Context: ctx, + } +} + +// NewDcimVirtualDeviceContextsUpdateParamsWithHTTPClient creates a new DcimVirtualDeviceContextsUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDcimVirtualDeviceContextsUpdateParamsWithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsUpdateParams { + return &DcimVirtualDeviceContextsUpdateParams{ + HTTPClient: client, + } +} + +/* +DcimVirtualDeviceContextsUpdateParams contains all the parameters to send to the API endpoint + + for the dcim virtual device contexts update operation. + + Typically these are written to a http.Request. +*/ +type DcimVirtualDeviceContextsUpdateParams struct { + + // Data. + Data *models.WritableVirtualDeviceContext + + /* ID. + + A unique integer value identifying this virtual device context. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the dcim virtual device contexts update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsUpdateParams) WithDefaults() *DcimVirtualDeviceContextsUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the dcim virtual device contexts update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DcimVirtualDeviceContextsUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) WithTimeout(timeout time.Duration) *DcimVirtualDeviceContextsUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) WithContext(ctx context.Context) *DcimVirtualDeviceContextsUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) WithHTTPClient(client *http.Client) *DcimVirtualDeviceContextsUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) WithData(data *models.WritableVirtualDeviceContext) *DcimVirtualDeviceContextsUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) SetData(data *models.WritableVirtualDeviceContext) { + o.Data = data +} + +// WithID adds the id to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) WithID(id int64) *DcimVirtualDeviceContextsUpdateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim virtual device contexts update params +func (o *DcimVirtualDeviceContextsUpdateParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DcimVirtualDeviceContextsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/dcim/dcim_virtual_device_contexts_update_responses.go b/netbox/client/dcim/dcim_virtual_device_contexts_update_responses.go new file mode 100644 index 00000000..1a10f92b --- /dev/null +++ b/netbox/client/dcim/dcim_virtual_device_contexts_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package dcim + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// DcimVirtualDeviceContextsUpdateReader is a Reader for the DcimVirtualDeviceContextsUpdate structure. +type DcimVirtualDeviceContextsUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DcimVirtualDeviceContextsUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDcimVirtualDeviceContextsUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDcimVirtualDeviceContextsUpdateOK creates a DcimVirtualDeviceContextsUpdateOK with default headers values +func NewDcimVirtualDeviceContextsUpdateOK() *DcimVirtualDeviceContextsUpdateOK { + return &DcimVirtualDeviceContextsUpdateOK{} +} + +/* +DcimVirtualDeviceContextsUpdateOK describes a response with status code 200, with default header values. + +DcimVirtualDeviceContextsUpdateOK dcim virtual device contexts update o k +*/ +type DcimVirtualDeviceContextsUpdateOK struct { + Payload *models.VirtualDeviceContext +} + +// IsSuccess returns true when this dcim virtual device contexts update o k response has a 2xx status code +func (o *DcimVirtualDeviceContextsUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this dcim virtual device contexts update o k response has a 3xx status code +func (o *DcimVirtualDeviceContextsUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this dcim virtual device contexts update o k response has a 4xx status code +func (o *DcimVirtualDeviceContextsUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this dcim virtual device contexts update o k response has a 5xx status code +func (o *DcimVirtualDeviceContextsUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this dcim virtual device contexts update o k response a status code equal to that given +func (o *DcimVirtualDeviceContextsUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *DcimVirtualDeviceContextsUpdateOK) Error() string { + return fmt.Sprintf("[PUT /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsUpdateOK) String() string { + return fmt.Sprintf("[PUT /dcim/virtual-device-contexts/{id}/][%d] dcimVirtualDeviceContextsUpdateOK %+v", 200, o.Payload) +} + +func (o *DcimVirtualDeviceContextsUpdateOK) GetPayload() *models.VirtualDeviceContext { + return o.Payload +} + +func (o *DcimVirtualDeviceContextsUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.VirtualDeviceContext) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_client.go b/netbox/client/extras/extras_client.go index 400e5a9a..0541ef41 100644 --- a/netbox/client/extras/extras_client.go +++ b/netbox/client/extras/extras_client.go @@ -171,6 +171,24 @@ type ClientService interface { ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsRunCreated, error) + ExtrasSavedFiltersBulkDelete(params *ExtrasSavedFiltersBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersBulkDeleteNoContent, error) + + ExtrasSavedFiltersBulkPartialUpdate(params *ExtrasSavedFiltersBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersBulkPartialUpdateOK, error) + + ExtrasSavedFiltersBulkUpdate(params *ExtrasSavedFiltersBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersBulkUpdateOK, error) + + ExtrasSavedFiltersCreate(params *ExtrasSavedFiltersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersCreateCreated, error) + + ExtrasSavedFiltersDelete(params *ExtrasSavedFiltersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersDeleteNoContent, error) + + ExtrasSavedFiltersList(params *ExtrasSavedFiltersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersListOK, error) + + ExtrasSavedFiltersPartialUpdate(params *ExtrasSavedFiltersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersPartialUpdateOK, error) + + ExtrasSavedFiltersRead(params *ExtrasSavedFiltersReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersReadOK, error) + + ExtrasSavedFiltersUpdate(params *ExtrasSavedFiltersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersUpdateOK, error) + ExtrasScriptsList(params *ExtrasScriptsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasScriptsListOK, error) ExtrasScriptsRead(params *ExtrasScriptsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasScriptsReadOK, error) @@ -2671,6 +2689,357 @@ func (a *Client) ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runti panic(msg) } +/* +ExtrasSavedFiltersBulkDelete extras saved filters bulk delete API +*/ +func (a *Client) ExtrasSavedFiltersBulkDelete(params *ExtrasSavedFiltersBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_bulk_delete", + Method: "DELETE", + PathPattern: "/extras/saved-filters/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersBulkPartialUpdate extras saved filters bulk partial update API +*/ +func (a *Client) ExtrasSavedFiltersBulkPartialUpdate(params *ExtrasSavedFiltersBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_bulk_partial_update", + Method: "PATCH", + PathPattern: "/extras/saved-filters/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersBulkUpdate extras saved filters bulk update API +*/ +func (a *Client) ExtrasSavedFiltersBulkUpdate(params *ExtrasSavedFiltersBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_bulk_update", + Method: "PUT", + PathPattern: "/extras/saved-filters/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersCreate extras saved filters create API +*/ +func (a *Client) ExtrasSavedFiltersCreate(params *ExtrasSavedFiltersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersCreateParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_create", + Method: "POST", + PathPattern: "/extras/saved-filters/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersDelete extras saved filters delete API +*/ +func (a *Client) ExtrasSavedFiltersDelete(params *ExtrasSavedFiltersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_delete", + Method: "DELETE", + PathPattern: "/extras/saved-filters/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersList extras saved filters list API +*/ +func (a *Client) ExtrasSavedFiltersList(params *ExtrasSavedFiltersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersListParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_list", + Method: "GET", + PathPattern: "/extras/saved-filters/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersPartialUpdate extras saved filters partial update API +*/ +func (a *Client) ExtrasSavedFiltersPartialUpdate(params *ExtrasSavedFiltersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_partial_update", + Method: "PATCH", + PathPattern: "/extras/saved-filters/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersRead extras saved filters read API +*/ +func (a *Client) ExtrasSavedFiltersRead(params *ExtrasSavedFiltersReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersReadParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_read", + Method: "GET", + PathPattern: "/extras/saved-filters/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ExtrasSavedFiltersUpdate extras saved filters update API +*/ +func (a *Client) ExtrasSavedFiltersUpdate(params *ExtrasSavedFiltersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasSavedFiltersUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewExtrasSavedFiltersUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "extras_saved-filters_update", + Method: "PUT", + PathPattern: "/extras/saved-filters/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ExtrasSavedFiltersUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ExtrasSavedFiltersUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for extras_saved-filters_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* ExtrasScriptsList extras scripts list API */ diff --git a/netbox/client/extras/extras_config_contexts_list_parameters.go b/netbox/client/extras/extras_config_contexts_list_parameters.go index c5c51645..c040c552 100644 --- a/netbox/client/extras/extras_config_contexts_list_parameters.go +++ b/netbox/client/extras/extras_config_contexts_list_parameters.go @@ -191,6 +191,9 @@ type ExtrasConfigContextsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -789,6 +792,17 @@ func (o *ExtrasConfigContextsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameEmpty(nameEmpty *string) *ExtrasConfigContextsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithNameIc(nameIc *string) *ExtrasConfigContextsListParams { o.SetNameIc(nameIc) @@ -1910,6 +1924,23 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/extras/extras_custom_fields_list_parameters.go b/netbox/client/extras/extras_custom_fields_list_parameters.go index 79463838..4fdff69d 100644 --- a/netbox/client/extras/extras_custom_fields_list_parameters.go +++ b/netbox/client/extras/extras_custom_fields_list_parameters.go @@ -128,6 +128,9 @@ type ExtrasCustomFieldsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -164,6 +167,9 @@ type ExtrasCustomFieldsListParams struct { // GroupName. GroupName *string + // GroupNameEmpty. + GroupNameEmpty *string + // GroupNameIc. GroupNameIc *string @@ -218,6 +224,9 @@ type ExtrasCustomFieldsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -263,6 +272,24 @@ type ExtrasCustomFieldsListParams struct { // Required. Required *string + // SearchWeight. + SearchWeight *string + + // SearchWeightGt. + SearchWeightGt *string + + // SearchWeightGte. + SearchWeightGte *string + + // SearchWeightLt. + SearchWeightLt *string + + // SearchWeightLte. + SearchWeightLte *string + + // SearchWeightn. + SearchWeightn *string + // Type. Type *string @@ -533,6 +560,17 @@ func (o *ExtrasCustomFieldsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasCustomFieldsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithDescriptionIc(descriptionIc *string) *ExtrasCustomFieldsListParams { o.SetDescriptionIc(descriptionIc) @@ -665,6 +703,17 @@ func (o *ExtrasCustomFieldsListParams) SetGroupName(groupName *string) { o.GroupName = groupName } +// WithGroupNameEmpty adds the groupNameEmpty to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithGroupNameEmpty(groupNameEmpty *string) *ExtrasCustomFieldsListParams { + o.SetGroupNameEmpty(groupNameEmpty) + return o +} + +// SetGroupNameEmpty adds the groupNameEmpty to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetGroupNameEmpty(groupNameEmpty *string) { + o.GroupNameEmpty = groupNameEmpty +} + // WithGroupNameIc adds the groupNameIc to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithGroupNameIc(groupNameIc *string) *ExtrasCustomFieldsListParams { o.SetGroupNameIc(groupNameIc) @@ -852,6 +901,17 @@ func (o *ExtrasCustomFieldsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithNameEmpty(nameEmpty *string) *ExtrasCustomFieldsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithNameIc(nameIc *string) *ExtrasCustomFieldsListParams { o.SetNameIc(nameIc) @@ -995,6 +1055,72 @@ func (o *ExtrasCustomFieldsListParams) SetRequired(required *string) { o.Required = required } +// WithSearchWeight adds the searchWeight to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithSearchWeight(searchWeight *string) *ExtrasCustomFieldsListParams { + o.SetSearchWeight(searchWeight) + return o +} + +// SetSearchWeight adds the searchWeight to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetSearchWeight(searchWeight *string) { + o.SearchWeight = searchWeight +} + +// WithSearchWeightGt adds the searchWeightGt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithSearchWeightGt(searchWeightGt *string) *ExtrasCustomFieldsListParams { + o.SetSearchWeightGt(searchWeightGt) + return o +} + +// SetSearchWeightGt adds the searchWeightGt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetSearchWeightGt(searchWeightGt *string) { + o.SearchWeightGt = searchWeightGt +} + +// WithSearchWeightGte adds the searchWeightGte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithSearchWeightGte(searchWeightGte *string) *ExtrasCustomFieldsListParams { + o.SetSearchWeightGte(searchWeightGte) + return o +} + +// SetSearchWeightGte adds the searchWeightGte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetSearchWeightGte(searchWeightGte *string) { + o.SearchWeightGte = searchWeightGte +} + +// WithSearchWeightLt adds the searchWeightLt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithSearchWeightLt(searchWeightLt *string) *ExtrasCustomFieldsListParams { + o.SetSearchWeightLt(searchWeightLt) + return o +} + +// SetSearchWeightLt adds the searchWeightLt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetSearchWeightLt(searchWeightLt *string) { + o.SearchWeightLt = searchWeightLt +} + +// WithSearchWeightLte adds the searchWeightLte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithSearchWeightLte(searchWeightLte *string) *ExtrasCustomFieldsListParams { + o.SetSearchWeightLte(searchWeightLte) + return o +} + +// SetSearchWeightLte adds the searchWeightLte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetSearchWeightLte(searchWeightLte *string) { + o.SearchWeightLte = searchWeightLte +} + +// WithSearchWeightn adds the searchWeightn to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithSearchWeightn(searchWeightn *string) *ExtrasCustomFieldsListParams { + o.SetSearchWeightn(searchWeightn) + return o +} + +// SetSearchWeightn adds the searchWeightN to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetSearchWeightn(searchWeightn *string) { + o.SearchWeightn = searchWeightn +} + // WithType adds the typeVar to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithType(typeVar *string) *ExtrasCustomFieldsListParams { o.SetType(typeVar) @@ -1402,6 +1528,23 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1606,6 +1749,23 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.GroupNameEmpty != nil { + + // query param group_name__empty + var qrGroupNameEmpty string + + if o.GroupNameEmpty != nil { + qrGroupNameEmpty = *o.GroupNameEmpty + } + qGroupNameEmpty := qrGroupNameEmpty + if qGroupNameEmpty != "" { + + if err := r.SetQueryParam("group_name__empty", qGroupNameEmpty); err != nil { + return err + } + } + } + if o.GroupNameIc != nil { // query param group_name__ic @@ -1895,6 +2055,23 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2116,6 +2293,108 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.SearchWeight != nil { + + // query param search_weight + var qrSearchWeight string + + if o.SearchWeight != nil { + qrSearchWeight = *o.SearchWeight + } + qSearchWeight := qrSearchWeight + if qSearchWeight != "" { + + if err := r.SetQueryParam("search_weight", qSearchWeight); err != nil { + return err + } + } + } + + if o.SearchWeightGt != nil { + + // query param search_weight__gt + var qrSearchWeightGt string + + if o.SearchWeightGt != nil { + qrSearchWeightGt = *o.SearchWeightGt + } + qSearchWeightGt := qrSearchWeightGt + if qSearchWeightGt != "" { + + if err := r.SetQueryParam("search_weight__gt", qSearchWeightGt); err != nil { + return err + } + } + } + + if o.SearchWeightGte != nil { + + // query param search_weight__gte + var qrSearchWeightGte string + + if o.SearchWeightGte != nil { + qrSearchWeightGte = *o.SearchWeightGte + } + qSearchWeightGte := qrSearchWeightGte + if qSearchWeightGte != "" { + + if err := r.SetQueryParam("search_weight__gte", qSearchWeightGte); err != nil { + return err + } + } + } + + if o.SearchWeightLt != nil { + + // query param search_weight__lt + var qrSearchWeightLt string + + if o.SearchWeightLt != nil { + qrSearchWeightLt = *o.SearchWeightLt + } + qSearchWeightLt := qrSearchWeightLt + if qSearchWeightLt != "" { + + if err := r.SetQueryParam("search_weight__lt", qSearchWeightLt); err != nil { + return err + } + } + } + + if o.SearchWeightLte != nil { + + // query param search_weight__lte + var qrSearchWeightLte string + + if o.SearchWeightLte != nil { + qrSearchWeightLte = *o.SearchWeightLte + } + qSearchWeightLte := qrSearchWeightLte + if qSearchWeightLte != "" { + + if err := r.SetQueryParam("search_weight__lte", qSearchWeightLte); err != nil { + return err + } + } + } + + if o.SearchWeightn != nil { + + // query param search_weight__n + var qrSearchWeightn string + + if o.SearchWeightn != nil { + qrSearchWeightn = *o.SearchWeightn + } + qSearchWeightn := qrSearchWeightn + if qSearchWeightn != "" { + + if err := r.SetQueryParam("search_weight__n", qSearchWeightn); err != nil { + return err + } + } + } + if o.Type != nil { // query param type diff --git a/netbox/client/extras/extras_custom_links_list_parameters.go b/netbox/client/extras/extras_custom_links_list_parameters.go index 6fdc1d87..6d14bd93 100644 --- a/netbox/client/extras/extras_custom_links_list_parameters.go +++ b/netbox/client/extras/extras_custom_links_list_parameters.go @@ -77,11 +77,53 @@ ExtrasCustomLinksListParams contains all the parameters to send to the API endpo */ type ExtrasCustomLinksListParams struct { - // ContentType. - ContentType *string + // ContentTypeID. + ContentTypeID *string - // ContentTypen. - ContentTypen *string + // ContentTypeIDGt. + ContentTypeIDGt *string + + // ContentTypeIDGte. + ContentTypeIDGte *string + + // ContentTypeIDLt. + ContentTypeIDLt *string + + // ContentTypeIDLte. + ContentTypeIDLte *string + + // ContentTypeIDn. + ContentTypeIDn *string + + // ContentTypes. + ContentTypes *string + + // ContentTypesIc. + ContentTypesIc *string + + // ContentTypesIe. + ContentTypesIe *string + + // ContentTypesIew. + ContentTypesIew *string + + // ContentTypesIsw. + ContentTypesIsw *string + + // ContentTypesn. + ContentTypesn *string + + // ContentTypesNic. + ContentTypesNic *string + + // ContentTypesNie. + ContentTypesNie *string + + // ContentTypesNiew. + ContentTypesNiew *string + + // ContentTypesNisw. + ContentTypesNisw *string // Enabled. Enabled *string @@ -89,6 +131,9 @@ type ExtrasCustomLinksListParams struct { // GroupName. GroupName *string + // GroupNameEmpty. + GroupNameEmpty *string + // GroupNameIc. GroupNameIc *string @@ -203,6 +248,9 @@ type ExtrasCustomLinksListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -319,26 +367,180 @@ func (o *ExtrasCustomLinksListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithContentType adds the contentType to the extras custom links list params -func (o *ExtrasCustomLinksListParams) WithContentType(contentType *string) *ExtrasCustomLinksListParams { - o.SetContentType(contentType) +// WithContentTypeID adds the contentTypeID to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypeID(contentTypeID *string) *ExtrasCustomLinksListParams { + o.SetContentTypeID(contentTypeID) + return o +} + +// SetContentTypeID adds the contentTypeId to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypeID(contentTypeID *string) { + o.ContentTypeID = contentTypeID +} + +// WithContentTypeIDGt adds the contentTypeIDGt to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypeIDGt(contentTypeIDGt *string) *ExtrasCustomLinksListParams { + o.SetContentTypeIDGt(contentTypeIDGt) + return o +} + +// SetContentTypeIDGt adds the contentTypeIdGt to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypeIDGt(contentTypeIDGt *string) { + o.ContentTypeIDGt = contentTypeIDGt +} + +// WithContentTypeIDGte adds the contentTypeIDGte to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypeIDGte(contentTypeIDGte *string) *ExtrasCustomLinksListParams { + o.SetContentTypeIDGte(contentTypeIDGte) + return o +} + +// SetContentTypeIDGte adds the contentTypeIdGte to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypeIDGte(contentTypeIDGte *string) { + o.ContentTypeIDGte = contentTypeIDGte +} + +// WithContentTypeIDLt adds the contentTypeIDLt to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypeIDLt(contentTypeIDLt *string) *ExtrasCustomLinksListParams { + o.SetContentTypeIDLt(contentTypeIDLt) + return o +} + +// SetContentTypeIDLt adds the contentTypeIdLt to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypeIDLt(contentTypeIDLt *string) { + o.ContentTypeIDLt = contentTypeIDLt +} + +// WithContentTypeIDLte adds the contentTypeIDLte to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypeIDLte(contentTypeIDLte *string) *ExtrasCustomLinksListParams { + o.SetContentTypeIDLte(contentTypeIDLte) + return o +} + +// SetContentTypeIDLte adds the contentTypeIdLte to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypeIDLte(contentTypeIDLte *string) { + o.ContentTypeIDLte = contentTypeIDLte +} + +// WithContentTypeIDn adds the contentTypeIDn to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypeIDn(contentTypeIDn *string) *ExtrasCustomLinksListParams { + o.SetContentTypeIDn(contentTypeIDn) + return o +} + +// SetContentTypeIDn adds the contentTypeIdN to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypeIDn(contentTypeIDn *string) { + o.ContentTypeIDn = contentTypeIDn +} + +// WithContentTypes adds the contentTypes to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypes(contentTypes *string) *ExtrasCustomLinksListParams { + o.SetContentTypes(contentTypes) + return o +} + +// SetContentTypes adds the contentTypes to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypes(contentTypes *string) { + o.ContentTypes = contentTypes +} + +// WithContentTypesIc adds the contentTypesIc to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesIc(contentTypesIc *string) *ExtrasCustomLinksListParams { + o.SetContentTypesIc(contentTypesIc) + return o +} + +// SetContentTypesIc adds the contentTypesIc to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesIc(contentTypesIc *string) { + o.ContentTypesIc = contentTypesIc +} + +// WithContentTypesIe adds the contentTypesIe to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesIe(contentTypesIe *string) *ExtrasCustomLinksListParams { + o.SetContentTypesIe(contentTypesIe) + return o +} + +// SetContentTypesIe adds the contentTypesIe to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesIe(contentTypesIe *string) { + o.ContentTypesIe = contentTypesIe +} + +// WithContentTypesIew adds the contentTypesIew to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesIew(contentTypesIew *string) *ExtrasCustomLinksListParams { + o.SetContentTypesIew(contentTypesIew) + return o +} + +// SetContentTypesIew adds the contentTypesIew to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesIew(contentTypesIew *string) { + o.ContentTypesIew = contentTypesIew +} + +// WithContentTypesIsw adds the contentTypesIsw to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesIsw(contentTypesIsw *string) *ExtrasCustomLinksListParams { + o.SetContentTypesIsw(contentTypesIsw) + return o +} + +// SetContentTypesIsw adds the contentTypesIsw to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesIsw(contentTypesIsw *string) { + o.ContentTypesIsw = contentTypesIsw +} + +// WithContentTypesn adds the contentTypesn to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesn(contentTypesn *string) *ExtrasCustomLinksListParams { + o.SetContentTypesn(contentTypesn) + return o +} + +// SetContentTypesn adds the contentTypesN to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesn(contentTypesn *string) { + o.ContentTypesn = contentTypesn +} + +// WithContentTypesNic adds the contentTypesNic to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesNic(contentTypesNic *string) *ExtrasCustomLinksListParams { + o.SetContentTypesNic(contentTypesNic) + return o +} + +// SetContentTypesNic adds the contentTypesNic to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesNic(contentTypesNic *string) { + o.ContentTypesNic = contentTypesNic +} + +// WithContentTypesNie adds the contentTypesNie to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesNie(contentTypesNie *string) *ExtrasCustomLinksListParams { + o.SetContentTypesNie(contentTypesNie) return o } -// SetContentType adds the contentType to the extras custom links list params -func (o *ExtrasCustomLinksListParams) SetContentType(contentType *string) { - o.ContentType = contentType +// SetContentTypesNie adds the contentTypesNie to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesNie(contentTypesNie *string) { + o.ContentTypesNie = contentTypesNie } -// WithContentTypen adds the contentTypen to the extras custom links list params -func (o *ExtrasCustomLinksListParams) WithContentTypen(contentTypen *string) *ExtrasCustomLinksListParams { - o.SetContentTypen(contentTypen) +// WithContentTypesNiew adds the contentTypesNiew to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesNiew(contentTypesNiew *string) *ExtrasCustomLinksListParams { + o.SetContentTypesNiew(contentTypesNiew) return o } -// SetContentTypen adds the contentTypeN to the extras custom links list params -func (o *ExtrasCustomLinksListParams) SetContentTypen(contentTypen *string) { - o.ContentTypen = contentTypen +// SetContentTypesNiew adds the contentTypesNiew to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesNiew(contentTypesNiew *string) { + o.ContentTypesNiew = contentTypesNiew +} + +// WithContentTypesNisw adds the contentTypesNisw to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithContentTypesNisw(contentTypesNisw *string) *ExtrasCustomLinksListParams { + o.SetContentTypesNisw(contentTypesNisw) + return o +} + +// SetContentTypesNisw adds the contentTypesNisw to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetContentTypesNisw(contentTypesNisw *string) { + o.ContentTypesNisw = contentTypesNisw } // WithEnabled adds the enabled to the extras custom links list params @@ -363,6 +565,17 @@ func (o *ExtrasCustomLinksListParams) SetGroupName(groupName *string) { o.GroupName = groupName } +// WithGroupNameEmpty adds the groupNameEmpty to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithGroupNameEmpty(groupNameEmpty *string) *ExtrasCustomLinksListParams { + o.SetGroupNameEmpty(groupNameEmpty) + return o +} + +// SetGroupNameEmpty adds the groupNameEmpty to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetGroupNameEmpty(groupNameEmpty *string) { + o.GroupNameEmpty = groupNameEmpty +} + // WithGroupNameIc adds the groupNameIc to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithGroupNameIc(groupNameIc *string) *ExtrasCustomLinksListParams { o.SetGroupNameIc(groupNameIc) @@ -770,6 +983,17 @@ func (o *ExtrasCustomLinksListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithNameEmpty(nameEmpty *string) *ExtrasCustomLinksListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithNameIc(nameIc *string) *ExtrasCustomLinksListParams { o.SetNameIc(nameIc) @@ -987,35 +1211,273 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } var res []error - if o.ContentType != nil { + if o.ContentTypeID != nil { + + // query param content_type_id + var qrContentTypeID string + + if o.ContentTypeID != nil { + qrContentTypeID = *o.ContentTypeID + } + qContentTypeID := qrContentTypeID + if qContentTypeID != "" { + + if err := r.SetQueryParam("content_type_id", qContentTypeID); err != nil { + return err + } + } + } + + if o.ContentTypeIDGt != nil { + + // query param content_type_id__gt + var qrContentTypeIDGt string + + if o.ContentTypeIDGt != nil { + qrContentTypeIDGt = *o.ContentTypeIDGt + } + qContentTypeIDGt := qrContentTypeIDGt + if qContentTypeIDGt != "" { + + if err := r.SetQueryParam("content_type_id__gt", qContentTypeIDGt); err != nil { + return err + } + } + } + + if o.ContentTypeIDGte != nil { + + // query param content_type_id__gte + var qrContentTypeIDGte string + + if o.ContentTypeIDGte != nil { + qrContentTypeIDGte = *o.ContentTypeIDGte + } + qContentTypeIDGte := qrContentTypeIDGte + if qContentTypeIDGte != "" { + + if err := r.SetQueryParam("content_type_id__gte", qContentTypeIDGte); err != nil { + return err + } + } + } + + if o.ContentTypeIDLt != nil { + + // query param content_type_id__lt + var qrContentTypeIDLt string + + if o.ContentTypeIDLt != nil { + qrContentTypeIDLt = *o.ContentTypeIDLt + } + qContentTypeIDLt := qrContentTypeIDLt + if qContentTypeIDLt != "" { + + if err := r.SetQueryParam("content_type_id__lt", qContentTypeIDLt); err != nil { + return err + } + } + } + + if o.ContentTypeIDLte != nil { + + // query param content_type_id__lte + var qrContentTypeIDLte string + + if o.ContentTypeIDLte != nil { + qrContentTypeIDLte = *o.ContentTypeIDLte + } + qContentTypeIDLte := qrContentTypeIDLte + if qContentTypeIDLte != "" { + + if err := r.SetQueryParam("content_type_id__lte", qContentTypeIDLte); err != nil { + return err + } + } + } + + if o.ContentTypeIDn != nil { + + // query param content_type_id__n + var qrContentTypeIDn string + + if o.ContentTypeIDn != nil { + qrContentTypeIDn = *o.ContentTypeIDn + } + qContentTypeIDn := qrContentTypeIDn + if qContentTypeIDn != "" { + + if err := r.SetQueryParam("content_type_id__n", qContentTypeIDn); err != nil { + return err + } + } + } + + if o.ContentTypes != nil { + + // query param content_types + var qrContentTypes string + + if o.ContentTypes != nil { + qrContentTypes = *o.ContentTypes + } + qContentTypes := qrContentTypes + if qContentTypes != "" { + + if err := r.SetQueryParam("content_types", qContentTypes); err != nil { + return err + } + } + } + + if o.ContentTypesIc != nil { + + // query param content_types__ic + var qrContentTypesIc string + + if o.ContentTypesIc != nil { + qrContentTypesIc = *o.ContentTypesIc + } + qContentTypesIc := qrContentTypesIc + if qContentTypesIc != "" { + + if err := r.SetQueryParam("content_types__ic", qContentTypesIc); err != nil { + return err + } + } + } + + if o.ContentTypesIe != nil { + + // query param content_types__ie + var qrContentTypesIe string + + if o.ContentTypesIe != nil { + qrContentTypesIe = *o.ContentTypesIe + } + qContentTypesIe := qrContentTypesIe + if qContentTypesIe != "" { + + if err := r.SetQueryParam("content_types__ie", qContentTypesIe); err != nil { + return err + } + } + } + + if o.ContentTypesIew != nil { + + // query param content_types__iew + var qrContentTypesIew string + + if o.ContentTypesIew != nil { + qrContentTypesIew = *o.ContentTypesIew + } + qContentTypesIew := qrContentTypesIew + if qContentTypesIew != "" { + + if err := r.SetQueryParam("content_types__iew", qContentTypesIew); err != nil { + return err + } + } + } + + if o.ContentTypesIsw != nil { + + // query param content_types__isw + var qrContentTypesIsw string + + if o.ContentTypesIsw != nil { + qrContentTypesIsw = *o.ContentTypesIsw + } + qContentTypesIsw := qrContentTypesIsw + if qContentTypesIsw != "" { + + if err := r.SetQueryParam("content_types__isw", qContentTypesIsw); err != nil { + return err + } + } + } + + if o.ContentTypesn != nil { + + // query param content_types__n + var qrContentTypesn string + + if o.ContentTypesn != nil { + qrContentTypesn = *o.ContentTypesn + } + qContentTypesn := qrContentTypesn + if qContentTypesn != "" { + + if err := r.SetQueryParam("content_types__n", qContentTypesn); err != nil { + return err + } + } + } + + if o.ContentTypesNic != nil { + + // query param content_types__nic + var qrContentTypesNic string + + if o.ContentTypesNic != nil { + qrContentTypesNic = *o.ContentTypesNic + } + qContentTypesNic := qrContentTypesNic + if qContentTypesNic != "" { + + if err := r.SetQueryParam("content_types__nic", qContentTypesNic); err != nil { + return err + } + } + } + + if o.ContentTypesNie != nil { - // query param content_type - var qrContentType string + // query param content_types__nie + var qrContentTypesNie string - if o.ContentType != nil { - qrContentType = *o.ContentType + if o.ContentTypesNie != nil { + qrContentTypesNie = *o.ContentTypesNie } - qContentType := qrContentType - if qContentType != "" { + qContentTypesNie := qrContentTypesNie + if qContentTypesNie != "" { - if err := r.SetQueryParam("content_type", qContentType); err != nil { + if err := r.SetQueryParam("content_types__nie", qContentTypesNie); err != nil { return err } } } - if o.ContentTypen != nil { + if o.ContentTypesNiew != nil { - // query param content_type__n - var qrContentTypen string + // query param content_types__niew + var qrContentTypesNiew string - if o.ContentTypen != nil { - qrContentTypen = *o.ContentTypen + if o.ContentTypesNiew != nil { + qrContentTypesNiew = *o.ContentTypesNiew } - qContentTypen := qrContentTypen - if qContentTypen != "" { + qContentTypesNiew := qrContentTypesNiew + if qContentTypesNiew != "" { - if err := r.SetQueryParam("content_type__n", qContentTypen); err != nil { + if err := r.SetQueryParam("content_types__niew", qContentTypesNiew); err != nil { + return err + } + } + } + + if o.ContentTypesNisw != nil { + + // query param content_types__nisw + var qrContentTypesNisw string + + if o.ContentTypesNisw != nil { + qrContentTypesNisw = *o.ContentTypesNisw + } + qContentTypesNisw := qrContentTypesNisw + if qContentTypesNisw != "" { + + if err := r.SetQueryParam("content_types__nisw", qContentTypesNisw); err != nil { return err } } @@ -1055,6 +1517,23 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.GroupNameEmpty != nil { + + // query param group_name__empty + var qrGroupNameEmpty string + + if o.GroupNameEmpty != nil { + qrGroupNameEmpty = *o.GroupNameEmpty + } + qGroupNameEmpty := qrGroupNameEmpty + if qGroupNameEmpty != "" { + + if err := r.SetQueryParam("group_name__empty", qGroupNameEmpty); err != nil { + return err + } + } + } + if o.GroupNameIc != nil { // query param group_name__ic @@ -1684,6 +2163,23 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/extras/extras_export_templates_list_parameters.go b/netbox/client/extras/extras_export_templates_list_parameters.go index 7f6c3a91..f7365707 100644 --- a/netbox/client/extras/extras_export_templates_list_parameters.go +++ b/netbox/client/extras/extras_export_templates_list_parameters.go @@ -77,15 +77,60 @@ ExtrasExportTemplatesListParams contains all the parameters to send to the API e */ type ExtrasExportTemplatesListParams struct { - // ContentType. - ContentType *string + // ContentTypeID. + ContentTypeID *string - // ContentTypen. - ContentTypen *string + // ContentTypeIDGt. + ContentTypeIDGt *string + + // ContentTypeIDGte. + ContentTypeIDGte *string + + // ContentTypeIDLt. + ContentTypeIDLt *string + + // ContentTypeIDLte. + ContentTypeIDLte *string + + // ContentTypeIDn. + ContentTypeIDn *string + + // ContentTypes. + ContentTypes *string + + // ContentTypesIc. + ContentTypesIc *string + + // ContentTypesIe. + ContentTypesIe *string + + // ContentTypesIew. + ContentTypesIew *string + + // ContentTypesIsw. + ContentTypesIsw *string + + // ContentTypesn. + ContentTypesn *string + + // ContentTypesNic. + ContentTypesNic *string + + // ContentTypesNie. + ContentTypesNie *string + + // ContentTypesNiew. + ContentTypesNiew *string + + // ContentTypesNisw. + ContentTypesNisw *string // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -140,6 +185,9 @@ type ExtrasExportTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -235,26 +283,180 @@ func (o *ExtrasExportTemplatesListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithContentType adds the contentType to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) WithContentType(contentType *string) *ExtrasExportTemplatesListParams { - o.SetContentType(contentType) +// WithContentTypeID adds the contentTypeID to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypeID(contentTypeID *string) *ExtrasExportTemplatesListParams { + o.SetContentTypeID(contentTypeID) + return o +} + +// SetContentTypeID adds the contentTypeId to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypeID(contentTypeID *string) { + o.ContentTypeID = contentTypeID +} + +// WithContentTypeIDGt adds the contentTypeIDGt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypeIDGt(contentTypeIDGt *string) *ExtrasExportTemplatesListParams { + o.SetContentTypeIDGt(contentTypeIDGt) + return o +} + +// SetContentTypeIDGt adds the contentTypeIdGt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypeIDGt(contentTypeIDGt *string) { + o.ContentTypeIDGt = contentTypeIDGt +} + +// WithContentTypeIDGte adds the contentTypeIDGte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypeIDGte(contentTypeIDGte *string) *ExtrasExportTemplatesListParams { + o.SetContentTypeIDGte(contentTypeIDGte) + return o +} + +// SetContentTypeIDGte adds the contentTypeIdGte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypeIDGte(contentTypeIDGte *string) { + o.ContentTypeIDGte = contentTypeIDGte +} + +// WithContentTypeIDLt adds the contentTypeIDLt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypeIDLt(contentTypeIDLt *string) *ExtrasExportTemplatesListParams { + o.SetContentTypeIDLt(contentTypeIDLt) + return o +} + +// SetContentTypeIDLt adds the contentTypeIdLt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypeIDLt(contentTypeIDLt *string) { + o.ContentTypeIDLt = contentTypeIDLt +} + +// WithContentTypeIDLte adds the contentTypeIDLte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypeIDLte(contentTypeIDLte *string) *ExtrasExportTemplatesListParams { + o.SetContentTypeIDLte(contentTypeIDLte) + return o +} + +// SetContentTypeIDLte adds the contentTypeIdLte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypeIDLte(contentTypeIDLte *string) { + o.ContentTypeIDLte = contentTypeIDLte +} + +// WithContentTypeIDn adds the contentTypeIDn to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypeIDn(contentTypeIDn *string) *ExtrasExportTemplatesListParams { + o.SetContentTypeIDn(contentTypeIDn) + return o +} + +// SetContentTypeIDn adds the contentTypeIdN to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypeIDn(contentTypeIDn *string) { + o.ContentTypeIDn = contentTypeIDn +} + +// WithContentTypes adds the contentTypes to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypes(contentTypes *string) *ExtrasExportTemplatesListParams { + o.SetContentTypes(contentTypes) + return o +} + +// SetContentTypes adds the contentTypes to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypes(contentTypes *string) { + o.ContentTypes = contentTypes +} + +// WithContentTypesIc adds the contentTypesIc to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesIc(contentTypesIc *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesIc(contentTypesIc) + return o +} + +// SetContentTypesIc adds the contentTypesIc to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesIc(contentTypesIc *string) { + o.ContentTypesIc = contentTypesIc +} + +// WithContentTypesIe adds the contentTypesIe to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesIe(contentTypesIe *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesIe(contentTypesIe) + return o +} + +// SetContentTypesIe adds the contentTypesIe to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesIe(contentTypesIe *string) { + o.ContentTypesIe = contentTypesIe +} + +// WithContentTypesIew adds the contentTypesIew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesIew(contentTypesIew *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesIew(contentTypesIew) + return o +} + +// SetContentTypesIew adds the contentTypesIew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesIew(contentTypesIew *string) { + o.ContentTypesIew = contentTypesIew +} + +// WithContentTypesIsw adds the contentTypesIsw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesIsw(contentTypesIsw *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesIsw(contentTypesIsw) + return o +} + +// SetContentTypesIsw adds the contentTypesIsw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesIsw(contentTypesIsw *string) { + o.ContentTypesIsw = contentTypesIsw +} + +// WithContentTypesn adds the contentTypesn to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesn(contentTypesn *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesn(contentTypesn) + return o +} + +// SetContentTypesn adds the contentTypesN to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesn(contentTypesn *string) { + o.ContentTypesn = contentTypesn +} + +// WithContentTypesNic adds the contentTypesNic to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesNic(contentTypesNic *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesNic(contentTypesNic) + return o +} + +// SetContentTypesNic adds the contentTypesNic to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesNic(contentTypesNic *string) { + o.ContentTypesNic = contentTypesNic +} + +// WithContentTypesNie adds the contentTypesNie to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesNie(contentTypesNie *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesNie(contentTypesNie) return o } -// SetContentType adds the contentType to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) SetContentType(contentType *string) { - o.ContentType = contentType +// SetContentTypesNie adds the contentTypesNie to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesNie(contentTypesNie *string) { + o.ContentTypesNie = contentTypesNie } -// WithContentTypen adds the contentTypen to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) WithContentTypen(contentTypen *string) *ExtrasExportTemplatesListParams { - o.SetContentTypen(contentTypen) +// WithContentTypesNiew adds the contentTypesNiew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesNiew(contentTypesNiew *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesNiew(contentTypesNiew) return o } -// SetContentTypen adds the contentTypeN to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) SetContentTypen(contentTypen *string) { - o.ContentTypen = contentTypen +// SetContentTypesNiew adds the contentTypesNiew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesNiew(contentTypesNiew *string) { + o.ContentTypesNiew = contentTypesNiew +} + +// WithContentTypesNisw adds the contentTypesNisw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypesNisw(contentTypesNisw *string) *ExtrasExportTemplatesListParams { + o.SetContentTypesNisw(contentTypesNisw) + return o +} + +// SetContentTypesNisw adds the contentTypesNisw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypesNisw(contentTypesNisw *string) { + o.ContentTypesNisw = contentTypesNisw } // WithDescription adds the description to the extras export templates list params @@ -268,6 +470,17 @@ func (o *ExtrasExportTemplatesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasExportTemplatesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the extras export templates list params func (o *ExtrasExportTemplatesListParams) WithDescriptionIc(descriptionIc *string) *ExtrasExportTemplatesListParams { o.SetDescriptionIc(descriptionIc) @@ -455,6 +668,17 @@ func (o *ExtrasExportTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameEmpty(nameEmpty *string) *ExtrasExportTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras export templates list params func (o *ExtrasExportTemplatesListParams) WithNameIc(nameIc *string) *ExtrasExportTemplatesListParams { o.SetNameIc(nameIc) @@ -595,35 +819,273 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } var res []error - if o.ContentType != nil { + if o.ContentTypeID != nil { + + // query param content_type_id + var qrContentTypeID string + + if o.ContentTypeID != nil { + qrContentTypeID = *o.ContentTypeID + } + qContentTypeID := qrContentTypeID + if qContentTypeID != "" { + + if err := r.SetQueryParam("content_type_id", qContentTypeID); err != nil { + return err + } + } + } + + if o.ContentTypeIDGt != nil { + + // query param content_type_id__gt + var qrContentTypeIDGt string + + if o.ContentTypeIDGt != nil { + qrContentTypeIDGt = *o.ContentTypeIDGt + } + qContentTypeIDGt := qrContentTypeIDGt + if qContentTypeIDGt != "" { + + if err := r.SetQueryParam("content_type_id__gt", qContentTypeIDGt); err != nil { + return err + } + } + } + + if o.ContentTypeIDGte != nil { + + // query param content_type_id__gte + var qrContentTypeIDGte string + + if o.ContentTypeIDGte != nil { + qrContentTypeIDGte = *o.ContentTypeIDGte + } + qContentTypeIDGte := qrContentTypeIDGte + if qContentTypeIDGte != "" { + + if err := r.SetQueryParam("content_type_id__gte", qContentTypeIDGte); err != nil { + return err + } + } + } + + if o.ContentTypeIDLt != nil { + + // query param content_type_id__lt + var qrContentTypeIDLt string + + if o.ContentTypeIDLt != nil { + qrContentTypeIDLt = *o.ContentTypeIDLt + } + qContentTypeIDLt := qrContentTypeIDLt + if qContentTypeIDLt != "" { + + if err := r.SetQueryParam("content_type_id__lt", qContentTypeIDLt); err != nil { + return err + } + } + } + + if o.ContentTypeIDLte != nil { + + // query param content_type_id__lte + var qrContentTypeIDLte string + + if o.ContentTypeIDLte != nil { + qrContentTypeIDLte = *o.ContentTypeIDLte + } + qContentTypeIDLte := qrContentTypeIDLte + if qContentTypeIDLte != "" { + + if err := r.SetQueryParam("content_type_id__lte", qContentTypeIDLte); err != nil { + return err + } + } + } + + if o.ContentTypeIDn != nil { + + // query param content_type_id__n + var qrContentTypeIDn string + + if o.ContentTypeIDn != nil { + qrContentTypeIDn = *o.ContentTypeIDn + } + qContentTypeIDn := qrContentTypeIDn + if qContentTypeIDn != "" { + + if err := r.SetQueryParam("content_type_id__n", qContentTypeIDn); err != nil { + return err + } + } + } + + if o.ContentTypes != nil { + + // query param content_types + var qrContentTypes string + + if o.ContentTypes != nil { + qrContentTypes = *o.ContentTypes + } + qContentTypes := qrContentTypes + if qContentTypes != "" { + + if err := r.SetQueryParam("content_types", qContentTypes); err != nil { + return err + } + } + } + + if o.ContentTypesIc != nil { + + // query param content_types__ic + var qrContentTypesIc string + + if o.ContentTypesIc != nil { + qrContentTypesIc = *o.ContentTypesIc + } + qContentTypesIc := qrContentTypesIc + if qContentTypesIc != "" { + + if err := r.SetQueryParam("content_types__ic", qContentTypesIc); err != nil { + return err + } + } + } + + if o.ContentTypesIe != nil { + + // query param content_types__ie + var qrContentTypesIe string + + if o.ContentTypesIe != nil { + qrContentTypesIe = *o.ContentTypesIe + } + qContentTypesIe := qrContentTypesIe + if qContentTypesIe != "" { + + if err := r.SetQueryParam("content_types__ie", qContentTypesIe); err != nil { + return err + } + } + } + + if o.ContentTypesIew != nil { + + // query param content_types__iew + var qrContentTypesIew string + + if o.ContentTypesIew != nil { + qrContentTypesIew = *o.ContentTypesIew + } + qContentTypesIew := qrContentTypesIew + if qContentTypesIew != "" { + + if err := r.SetQueryParam("content_types__iew", qContentTypesIew); err != nil { + return err + } + } + } + + if o.ContentTypesIsw != nil { + + // query param content_types__isw + var qrContentTypesIsw string + + if o.ContentTypesIsw != nil { + qrContentTypesIsw = *o.ContentTypesIsw + } + qContentTypesIsw := qrContentTypesIsw + if qContentTypesIsw != "" { + + if err := r.SetQueryParam("content_types__isw", qContentTypesIsw); err != nil { + return err + } + } + } + + if o.ContentTypesn != nil { + + // query param content_types__n + var qrContentTypesn string + + if o.ContentTypesn != nil { + qrContentTypesn = *o.ContentTypesn + } + qContentTypesn := qrContentTypesn + if qContentTypesn != "" { + + if err := r.SetQueryParam("content_types__n", qContentTypesn); err != nil { + return err + } + } + } + + if o.ContentTypesNic != nil { + + // query param content_types__nic + var qrContentTypesNic string + + if o.ContentTypesNic != nil { + qrContentTypesNic = *o.ContentTypesNic + } + qContentTypesNic := qrContentTypesNic + if qContentTypesNic != "" { + + if err := r.SetQueryParam("content_types__nic", qContentTypesNic); err != nil { + return err + } + } + } + + if o.ContentTypesNie != nil { - // query param content_type - var qrContentType string + // query param content_types__nie + var qrContentTypesNie string - if o.ContentType != nil { - qrContentType = *o.ContentType + if o.ContentTypesNie != nil { + qrContentTypesNie = *o.ContentTypesNie } - qContentType := qrContentType - if qContentType != "" { + qContentTypesNie := qrContentTypesNie + if qContentTypesNie != "" { - if err := r.SetQueryParam("content_type", qContentType); err != nil { + if err := r.SetQueryParam("content_types__nie", qContentTypesNie); err != nil { return err } } } - if o.ContentTypen != nil { + if o.ContentTypesNiew != nil { - // query param content_type__n - var qrContentTypen string + // query param content_types__niew + var qrContentTypesNiew string - if o.ContentTypen != nil { - qrContentTypen = *o.ContentTypen + if o.ContentTypesNiew != nil { + qrContentTypesNiew = *o.ContentTypesNiew } - qContentTypen := qrContentTypen - if qContentTypen != "" { + qContentTypesNiew := qrContentTypesNiew + if qContentTypesNiew != "" { - if err := r.SetQueryParam("content_type__n", qContentTypen); err != nil { + if err := r.SetQueryParam("content_types__niew", qContentTypesNiew); err != nil { + return err + } + } + } + + if o.ContentTypesNisw != nil { + + // query param content_types__nisw + var qrContentTypesNisw string + + if o.ContentTypesNisw != nil { + qrContentTypesNisw = *o.ContentTypesNisw + } + qContentTypesNisw := qrContentTypesNisw + if qContentTypesNisw != "" { + + if err := r.SetQueryParam("content_types__nisw", qContentTypesNisw); err != nil { return err } } @@ -646,6 +1108,23 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -935,6 +1414,23 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/extras/extras_image_attachments_list_parameters.go b/netbox/client/extras/extras_image_attachments_list_parameters.go index 2a6ae534..24895b1d 100644 --- a/netbox/client/extras/extras_image_attachments_list_parameters.go +++ b/netbox/client/extras/extras_image_attachments_list_parameters.go @@ -119,6 +119,9 @@ type ExtrasImageAttachmentsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -375,6 +378,17 @@ func (o *ExtrasImageAttachmentsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras image attachments list params +func (o *ExtrasImageAttachmentsListParams) WithNameEmpty(nameEmpty *string) *ExtrasImageAttachmentsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras image attachments list params +func (o *ExtrasImageAttachmentsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras image attachments list params func (o *ExtrasImageAttachmentsListParams) WithNameIc(nameIc *string) *ExtrasImageAttachmentsListParams { o.SetNameIc(nameIc) @@ -802,6 +816,23 @@ func (o *ExtrasImageAttachmentsListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/extras/extras_job_results_list_parameters.go b/netbox/client/extras/extras_job_results_list_parameters.go index 8c09cad8..afb2ab2f 100644 --- a/netbox/client/extras/extras_job_results_list_parameters.go +++ b/netbox/client/extras/extras_job_results_list_parameters.go @@ -80,9 +80,21 @@ type ExtrasJobResultsListParams struct { // Completed. Completed *string + // CompletedAfter. + CompletedAfter *string + + // CompletedBefore. + CompletedBefore *string + // Created. Created *string + // CreatedAfter. + CreatedAfter *string + + // CreatedBefore. + CreatedBefore *string + // ID. ID *string @@ -101,6 +113,24 @@ type ExtrasJobResultsListParams struct { // IDn. IDn *string + // Interval. + Interval *string + + // IntervalGt. + IntervalGt *string + + // IntervalGte. + IntervalGte *string + + // IntervalLt. + IntervalLt *string + + // IntervalLte. + IntervalLte *string + + // Intervaln. + Intervaln *string + /* Limit. Number of results to return per page. @@ -110,6 +140,9 @@ type ExtrasJobResultsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -158,6 +191,24 @@ type ExtrasJobResultsListParams struct { // Q. Q *string + // Scheduled. + Scheduled *string + + // ScheduledAfter. + ScheduledAfter *string + + // ScheduledBefore. + ScheduledBefore *string + + // Started. + Started *string + + // StartedAfter. + StartedAfter *string + + // StartedBefore. + StartedBefore *string + // Status. Status *string @@ -234,6 +285,28 @@ func (o *ExtrasJobResultsListParams) SetCompleted(completed *string) { o.Completed = completed } +// WithCompletedAfter adds the completedAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) WithCompletedAfter(completedAfter *string) *ExtrasJobResultsListParams { + o.SetCompletedAfter(completedAfter) + return o +} + +// SetCompletedAfter adds the completedAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) SetCompletedAfter(completedAfter *string) { + o.CompletedAfter = completedAfter +} + +// WithCompletedBefore adds the completedBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) WithCompletedBefore(completedBefore *string) *ExtrasJobResultsListParams { + o.SetCompletedBefore(completedBefore) + return o +} + +// SetCompletedBefore adds the completedBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) SetCompletedBefore(completedBefore *string) { + o.CompletedBefore = completedBefore +} + // WithCreated adds the created to the extras job results list params func (o *ExtrasJobResultsListParams) WithCreated(created *string) *ExtrasJobResultsListParams { o.SetCreated(created) @@ -245,6 +318,28 @@ func (o *ExtrasJobResultsListParams) SetCreated(created *string) { o.Created = created } +// WithCreatedAfter adds the createdAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) WithCreatedAfter(createdAfter *string) *ExtrasJobResultsListParams { + o.SetCreatedAfter(createdAfter) + return o +} + +// SetCreatedAfter adds the createdAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) SetCreatedAfter(createdAfter *string) { + o.CreatedAfter = createdAfter +} + +// WithCreatedBefore adds the createdBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) WithCreatedBefore(createdBefore *string) *ExtrasJobResultsListParams { + o.SetCreatedBefore(createdBefore) + return o +} + +// SetCreatedBefore adds the createdBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) SetCreatedBefore(createdBefore *string) { + o.CreatedBefore = createdBefore +} + // WithID adds the id to the extras job results list params func (o *ExtrasJobResultsListParams) WithID(id *string) *ExtrasJobResultsListParams { o.SetID(id) @@ -311,6 +406,72 @@ func (o *ExtrasJobResultsListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithInterval adds the interval to the extras job results list params +func (o *ExtrasJobResultsListParams) WithInterval(interval *string) *ExtrasJobResultsListParams { + o.SetInterval(interval) + return o +} + +// SetInterval adds the interval to the extras job results list params +func (o *ExtrasJobResultsListParams) SetInterval(interval *string) { + o.Interval = interval +} + +// WithIntervalGt adds the intervalGt to the extras job results list params +func (o *ExtrasJobResultsListParams) WithIntervalGt(intervalGt *string) *ExtrasJobResultsListParams { + o.SetIntervalGt(intervalGt) + return o +} + +// SetIntervalGt adds the intervalGt to the extras job results list params +func (o *ExtrasJobResultsListParams) SetIntervalGt(intervalGt *string) { + o.IntervalGt = intervalGt +} + +// WithIntervalGte adds the intervalGte to the extras job results list params +func (o *ExtrasJobResultsListParams) WithIntervalGte(intervalGte *string) *ExtrasJobResultsListParams { + o.SetIntervalGte(intervalGte) + return o +} + +// SetIntervalGte adds the intervalGte to the extras job results list params +func (o *ExtrasJobResultsListParams) SetIntervalGte(intervalGte *string) { + o.IntervalGte = intervalGte +} + +// WithIntervalLt adds the intervalLt to the extras job results list params +func (o *ExtrasJobResultsListParams) WithIntervalLt(intervalLt *string) *ExtrasJobResultsListParams { + o.SetIntervalLt(intervalLt) + return o +} + +// SetIntervalLt adds the intervalLt to the extras job results list params +func (o *ExtrasJobResultsListParams) SetIntervalLt(intervalLt *string) { + o.IntervalLt = intervalLt +} + +// WithIntervalLte adds the intervalLte to the extras job results list params +func (o *ExtrasJobResultsListParams) WithIntervalLte(intervalLte *string) *ExtrasJobResultsListParams { + o.SetIntervalLte(intervalLte) + return o +} + +// SetIntervalLte adds the intervalLte to the extras job results list params +func (o *ExtrasJobResultsListParams) SetIntervalLte(intervalLte *string) { + o.IntervalLte = intervalLte +} + +// WithIntervaln adds the intervaln to the extras job results list params +func (o *ExtrasJobResultsListParams) WithIntervaln(intervaln *string) *ExtrasJobResultsListParams { + o.SetIntervaln(intervaln) + return o +} + +// SetIntervaln adds the intervalN to the extras job results list params +func (o *ExtrasJobResultsListParams) SetIntervaln(intervaln *string) { + o.Intervaln = intervaln +} + // WithLimit adds the limit to the extras job results list params func (o *ExtrasJobResultsListParams) WithLimit(limit *int64) *ExtrasJobResultsListParams { o.SetLimit(limit) @@ -333,6 +494,17 @@ func (o *ExtrasJobResultsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras job results list params +func (o *ExtrasJobResultsListParams) WithNameEmpty(nameEmpty *string) *ExtrasJobResultsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras job results list params +func (o *ExtrasJobResultsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras job results list params func (o *ExtrasJobResultsListParams) WithNameIc(nameIc *string) *ExtrasJobResultsListParams { o.SetNameIc(nameIc) @@ -487,6 +659,72 @@ func (o *ExtrasJobResultsListParams) SetQ(q *string) { o.Q = q } +// WithScheduled adds the scheduled to the extras job results list params +func (o *ExtrasJobResultsListParams) WithScheduled(scheduled *string) *ExtrasJobResultsListParams { + o.SetScheduled(scheduled) + return o +} + +// SetScheduled adds the scheduled to the extras job results list params +func (o *ExtrasJobResultsListParams) SetScheduled(scheduled *string) { + o.Scheduled = scheduled +} + +// WithScheduledAfter adds the scheduledAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) WithScheduledAfter(scheduledAfter *string) *ExtrasJobResultsListParams { + o.SetScheduledAfter(scheduledAfter) + return o +} + +// SetScheduledAfter adds the scheduledAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) SetScheduledAfter(scheduledAfter *string) { + o.ScheduledAfter = scheduledAfter +} + +// WithScheduledBefore adds the scheduledBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) WithScheduledBefore(scheduledBefore *string) *ExtrasJobResultsListParams { + o.SetScheduledBefore(scheduledBefore) + return o +} + +// SetScheduledBefore adds the scheduledBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) SetScheduledBefore(scheduledBefore *string) { + o.ScheduledBefore = scheduledBefore +} + +// WithStarted adds the started to the extras job results list params +func (o *ExtrasJobResultsListParams) WithStarted(started *string) *ExtrasJobResultsListParams { + o.SetStarted(started) + return o +} + +// SetStarted adds the started to the extras job results list params +func (o *ExtrasJobResultsListParams) SetStarted(started *string) { + o.Started = started +} + +// WithStartedAfter adds the startedAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) WithStartedAfter(startedAfter *string) *ExtrasJobResultsListParams { + o.SetStartedAfter(startedAfter) + return o +} + +// SetStartedAfter adds the startedAfter to the extras job results list params +func (o *ExtrasJobResultsListParams) SetStartedAfter(startedAfter *string) { + o.StartedAfter = startedAfter +} + +// WithStartedBefore adds the startedBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) WithStartedBefore(startedBefore *string) *ExtrasJobResultsListParams { + o.SetStartedBefore(startedBefore) + return o +} + +// SetStartedBefore adds the startedBefore to the extras job results list params +func (o *ExtrasJobResultsListParams) SetStartedBefore(startedBefore *string) { + o.StartedBefore = startedBefore +} + // WithStatus adds the status to the extras job results list params func (o *ExtrasJobResultsListParams) WithStatus(status *string) *ExtrasJobResultsListParams { o.SetStatus(status) @@ -556,6 +794,40 @@ func (o *ExtrasJobResultsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.CompletedAfter != nil { + + // query param completed__after + var qrCompletedAfter string + + if o.CompletedAfter != nil { + qrCompletedAfter = *o.CompletedAfter + } + qCompletedAfter := qrCompletedAfter + if qCompletedAfter != "" { + + if err := r.SetQueryParam("completed__after", qCompletedAfter); err != nil { + return err + } + } + } + + if o.CompletedBefore != nil { + + // query param completed__before + var qrCompletedBefore string + + if o.CompletedBefore != nil { + qrCompletedBefore = *o.CompletedBefore + } + qCompletedBefore := qrCompletedBefore + if qCompletedBefore != "" { + + if err := r.SetQueryParam("completed__before", qCompletedBefore); err != nil { + return err + } + } + } + if o.Created != nil { // query param created @@ -573,6 +845,40 @@ func (o *ExtrasJobResultsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.CreatedAfter != nil { + + // query param created__after + var qrCreatedAfter string + + if o.CreatedAfter != nil { + qrCreatedAfter = *o.CreatedAfter + } + qCreatedAfter := qrCreatedAfter + if qCreatedAfter != "" { + + if err := r.SetQueryParam("created__after", qCreatedAfter); err != nil { + return err + } + } + } + + if o.CreatedBefore != nil { + + // query param created__before + var qrCreatedBefore string + + if o.CreatedBefore != nil { + qrCreatedBefore = *o.CreatedBefore + } + qCreatedBefore := qrCreatedBefore + if qCreatedBefore != "" { + + if err := r.SetQueryParam("created__before", qCreatedBefore); err != nil { + return err + } + } + } + if o.ID != nil { // query param id @@ -675,6 +981,108 @@ func (o *ExtrasJobResultsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.Interval != nil { + + // query param interval + var qrInterval string + + if o.Interval != nil { + qrInterval = *o.Interval + } + qInterval := qrInterval + if qInterval != "" { + + if err := r.SetQueryParam("interval", qInterval); err != nil { + return err + } + } + } + + if o.IntervalGt != nil { + + // query param interval__gt + var qrIntervalGt string + + if o.IntervalGt != nil { + qrIntervalGt = *o.IntervalGt + } + qIntervalGt := qrIntervalGt + if qIntervalGt != "" { + + if err := r.SetQueryParam("interval__gt", qIntervalGt); err != nil { + return err + } + } + } + + if o.IntervalGte != nil { + + // query param interval__gte + var qrIntervalGte string + + if o.IntervalGte != nil { + qrIntervalGte = *o.IntervalGte + } + qIntervalGte := qrIntervalGte + if qIntervalGte != "" { + + if err := r.SetQueryParam("interval__gte", qIntervalGte); err != nil { + return err + } + } + } + + if o.IntervalLt != nil { + + // query param interval__lt + var qrIntervalLt string + + if o.IntervalLt != nil { + qrIntervalLt = *o.IntervalLt + } + qIntervalLt := qrIntervalLt + if qIntervalLt != "" { + + if err := r.SetQueryParam("interval__lt", qIntervalLt); err != nil { + return err + } + } + } + + if o.IntervalLte != nil { + + // query param interval__lte + var qrIntervalLte string + + if o.IntervalLte != nil { + qrIntervalLte = *o.IntervalLte + } + qIntervalLte := qrIntervalLte + if qIntervalLte != "" { + + if err := r.SetQueryParam("interval__lte", qIntervalLte); err != nil { + return err + } + } + } + + if o.Intervaln != nil { + + // query param interval__n + var qrIntervaln string + + if o.Intervaln != nil { + qrIntervaln = *o.Intervaln + } + qIntervaln := qrIntervaln + if qIntervaln != "" { + + if err := r.SetQueryParam("interval__n", qIntervaln); err != nil { + return err + } + } + } + if o.Limit != nil { // query param limit @@ -709,6 +1117,23 @@ func (o *ExtrasJobResultsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -947,6 +1372,108 @@ func (o *ExtrasJobResultsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.Scheduled != nil { + + // query param scheduled + var qrScheduled string + + if o.Scheduled != nil { + qrScheduled = *o.Scheduled + } + qScheduled := qrScheduled + if qScheduled != "" { + + if err := r.SetQueryParam("scheduled", qScheduled); err != nil { + return err + } + } + } + + if o.ScheduledAfter != nil { + + // query param scheduled__after + var qrScheduledAfter string + + if o.ScheduledAfter != nil { + qrScheduledAfter = *o.ScheduledAfter + } + qScheduledAfter := qrScheduledAfter + if qScheduledAfter != "" { + + if err := r.SetQueryParam("scheduled__after", qScheduledAfter); err != nil { + return err + } + } + } + + if o.ScheduledBefore != nil { + + // query param scheduled__before + var qrScheduledBefore string + + if o.ScheduledBefore != nil { + qrScheduledBefore = *o.ScheduledBefore + } + qScheduledBefore := qrScheduledBefore + if qScheduledBefore != "" { + + if err := r.SetQueryParam("scheduled__before", qScheduledBefore); err != nil { + return err + } + } + } + + if o.Started != nil { + + // query param started + var qrStarted string + + if o.Started != nil { + qrStarted = *o.Started + } + qStarted := qrStarted + if qStarted != "" { + + if err := r.SetQueryParam("started", qStarted); err != nil { + return err + } + } + } + + if o.StartedAfter != nil { + + // query param started__after + var qrStartedAfter string + + if o.StartedAfter != nil { + qrStartedAfter = *o.StartedAfter + } + qStartedAfter := qrStartedAfter + if qStartedAfter != "" { + + if err := r.SetQueryParam("started__after", qStartedAfter); err != nil { + return err + } + } + } + + if o.StartedBefore != nil { + + // query param started__before + var qrStartedBefore string + + if o.StartedBefore != nil { + qrStartedBefore = *o.StartedBefore + } + qStartedBefore := qrStartedBefore + if qStartedBefore != "" { + + if err := r.SetQueryParam("started__before", qStartedBefore); err != nil { + return err + } + } + } + if o.Status != nil { // query param status diff --git a/netbox/client/extras/extras_object_changes_list_parameters.go b/netbox/client/extras/extras_object_changes_list_parameters.go index 2fb68ec9..f83aa441 100644 --- a/netbox/client/extras/extras_object_changes_list_parameters.go +++ b/netbox/client/extras/extras_object_changes_list_parameters.go @@ -140,6 +140,9 @@ type ExtrasObjectChangesListParams struct { // ObjectRepr. ObjectRepr *string + // ObjectReprEmpty. + ObjectReprEmpty *string + // ObjectReprIc. ObjectReprIc *string @@ -203,6 +206,9 @@ type ExtrasObjectChangesListParams struct { // UserName. UserName *string + // UserNameEmpty. + UserNameEmpty *string + // UserNameIc. UserNameIc *string @@ -503,6 +509,17 @@ func (o *ExtrasObjectChangesListParams) SetObjectRepr(objectRepr *string) { o.ObjectRepr = objectRepr } +// WithObjectReprEmpty adds the objectReprEmpty to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprEmpty(objectReprEmpty *string) *ExtrasObjectChangesListParams { + o.SetObjectReprEmpty(objectReprEmpty) + return o +} + +// SetObjectReprEmpty adds the objectReprEmpty to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprEmpty(objectReprEmpty *string) { + o.ObjectReprEmpty = objectReprEmpty +} + // WithObjectReprIc adds the objectReprIc to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithObjectReprIc(objectReprIc *string) *ExtrasObjectChangesListParams { o.SetObjectReprIc(objectReprIc) @@ -712,6 +729,17 @@ func (o *ExtrasObjectChangesListParams) SetUserName(userName *string) { o.UserName = userName } +// WithUserNameEmpty adds the userNameEmpty to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameEmpty(userNameEmpty *string) *ExtrasObjectChangesListParams { + o.SetUserNameEmpty(userNameEmpty) + return o +} + +// SetUserNameEmpty adds the userNameEmpty to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameEmpty(userNameEmpty *string) { + o.UserNameEmpty = userNameEmpty +} + // WithUserNameIc adds the userNameIc to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithUserNameIc(userNameIc *string) *ExtrasObjectChangesListParams { o.SetUserNameIc(userNameIc) @@ -1159,6 +1187,23 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.ObjectReprEmpty != nil { + + // query param object_repr__empty + var qrObjectReprEmpty string + + if o.ObjectReprEmpty != nil { + qrObjectReprEmpty = *o.ObjectReprEmpty + } + qObjectReprEmpty := qrObjectReprEmpty + if qObjectReprEmpty != "" { + + if err := r.SetQueryParam("object_repr__empty", qObjectReprEmpty); err != nil { + return err + } + } + } + if o.ObjectReprIc != nil { // query param object_repr__ic @@ -1482,6 +1527,23 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.UserNameEmpty != nil { + + // query param user_name__empty + var qrUserNameEmpty string + + if o.UserNameEmpty != nil { + qrUserNameEmpty = *o.UserNameEmpty + } + qUserNameEmpty := qrUserNameEmpty + if qUserNameEmpty != "" { + + if err := r.SetQueryParam("user_name__empty", qUserNameEmpty); err != nil { + return err + } + } + } + if o.UserNameIc != nil { // query param user_name__ic diff --git a/netbox/client/extras/extras_saved_filters_bulk_delete_parameters.go b/netbox/client/extras/extras_saved_filters_bulk_delete_parameters.go new file mode 100644 index 00000000..7f7ad7cd --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_bulk_delete_parameters.go @@ -0,0 +1,143 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewExtrasSavedFiltersBulkDeleteParams creates a new ExtrasSavedFiltersBulkDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersBulkDeleteParams() *ExtrasSavedFiltersBulkDeleteParams { + return &ExtrasSavedFiltersBulkDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersBulkDeleteParamsWithTimeout creates a new ExtrasSavedFiltersBulkDeleteParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersBulkDeleteParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersBulkDeleteParams { + return &ExtrasSavedFiltersBulkDeleteParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersBulkDeleteParamsWithContext creates a new ExtrasSavedFiltersBulkDeleteParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersBulkDeleteParamsWithContext(ctx context.Context) *ExtrasSavedFiltersBulkDeleteParams { + return &ExtrasSavedFiltersBulkDeleteParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersBulkDeleteParamsWithHTTPClient creates a new ExtrasSavedFiltersBulkDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersBulkDeleteParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersBulkDeleteParams { + return &ExtrasSavedFiltersBulkDeleteParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersBulkDeleteParams contains all the parameters to send to the API endpoint + + for the extras saved filters bulk delete operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersBulkDeleteParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters bulk delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersBulkDeleteParams) WithDefaults() *ExtrasSavedFiltersBulkDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters bulk delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersBulkDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters bulk delete params +func (o *ExtrasSavedFiltersBulkDeleteParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersBulkDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters bulk delete params +func (o *ExtrasSavedFiltersBulkDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters bulk delete params +func (o *ExtrasSavedFiltersBulkDeleteParams) WithContext(ctx context.Context) *ExtrasSavedFiltersBulkDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters bulk delete params +func (o *ExtrasSavedFiltersBulkDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters bulk delete params +func (o *ExtrasSavedFiltersBulkDeleteParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersBulkDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters bulk delete params +func (o *ExtrasSavedFiltersBulkDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersBulkDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_bulk_delete_responses.go b/netbox/client/extras/extras_saved_filters_bulk_delete_responses.go new file mode 100644 index 00000000..7ac4b320 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_bulk_delete_responses.go @@ -0,0 +1,98 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// ExtrasSavedFiltersBulkDeleteReader is a Reader for the ExtrasSavedFiltersBulkDelete structure. +type ExtrasSavedFiltersBulkDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersBulkDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewExtrasSavedFiltersBulkDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersBulkDeleteNoContent creates a ExtrasSavedFiltersBulkDeleteNoContent with default headers values +func NewExtrasSavedFiltersBulkDeleteNoContent() *ExtrasSavedFiltersBulkDeleteNoContent { + return &ExtrasSavedFiltersBulkDeleteNoContent{} +} + +/* +ExtrasSavedFiltersBulkDeleteNoContent describes a response with status code 204, with default header values. + +ExtrasSavedFiltersBulkDeleteNoContent extras saved filters bulk delete no content +*/ +type ExtrasSavedFiltersBulkDeleteNoContent struct { +} + +// IsSuccess returns true when this extras saved filters bulk delete no content response has a 2xx status code +func (o *ExtrasSavedFiltersBulkDeleteNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters bulk delete no content response has a 3xx status code +func (o *ExtrasSavedFiltersBulkDeleteNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters bulk delete no content response has a 4xx status code +func (o *ExtrasSavedFiltersBulkDeleteNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters bulk delete no content response has a 5xx status code +func (o *ExtrasSavedFiltersBulkDeleteNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters bulk delete no content response a status code equal to that given +func (o *ExtrasSavedFiltersBulkDeleteNoContent) IsCode(code int) bool { + return code == 204 +} + +func (o *ExtrasSavedFiltersBulkDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /extras/saved-filters/][%d] extrasSavedFiltersBulkDeleteNoContent ", 204) +} + +func (o *ExtrasSavedFiltersBulkDeleteNoContent) String() string { + return fmt.Sprintf("[DELETE /extras/saved-filters/][%d] extrasSavedFiltersBulkDeleteNoContent ", 204) +} + +func (o *ExtrasSavedFiltersBulkDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_bulk_partial_update_parameters.go b/netbox/client/extras/extras_saved_filters_bulk_partial_update_parameters.go new file mode 100644 index 00000000..059bb07d --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_bulk_partial_update_parameters.go @@ -0,0 +1,165 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewExtrasSavedFiltersBulkPartialUpdateParams creates a new ExtrasSavedFiltersBulkPartialUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersBulkPartialUpdateParams() *ExtrasSavedFiltersBulkPartialUpdateParams { + return &ExtrasSavedFiltersBulkPartialUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersBulkPartialUpdateParamsWithTimeout creates a new ExtrasSavedFiltersBulkPartialUpdateParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersBulkPartialUpdateParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersBulkPartialUpdateParams { + return &ExtrasSavedFiltersBulkPartialUpdateParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersBulkPartialUpdateParamsWithContext creates a new ExtrasSavedFiltersBulkPartialUpdateParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersBulkPartialUpdateParamsWithContext(ctx context.Context) *ExtrasSavedFiltersBulkPartialUpdateParams { + return &ExtrasSavedFiltersBulkPartialUpdateParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersBulkPartialUpdateParamsWithHTTPClient creates a new ExtrasSavedFiltersBulkPartialUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersBulkPartialUpdateParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersBulkPartialUpdateParams { + return &ExtrasSavedFiltersBulkPartialUpdateParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersBulkPartialUpdateParams contains all the parameters to send to the API endpoint + + for the extras saved filters bulk partial update operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersBulkPartialUpdateParams struct { + + // Data. + Data *models.SavedFilter + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters bulk partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) WithDefaults() *ExtrasSavedFiltersBulkPartialUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters bulk partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersBulkPartialUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) WithContext(ctx context.Context) *ExtrasSavedFiltersBulkPartialUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersBulkPartialUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) WithData(data *models.SavedFilter) *ExtrasSavedFiltersBulkPartialUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the extras saved filters bulk partial update params +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) SetData(data *models.SavedFilter) { + o.Data = data +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersBulkPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_bulk_partial_update_responses.go b/netbox/client/extras/extras_saved_filters_bulk_partial_update_responses.go new file mode 100644 index 00000000..e8e93673 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_bulk_partial_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersBulkPartialUpdateReader is a Reader for the ExtrasSavedFiltersBulkPartialUpdate structure. +type ExtrasSavedFiltersBulkPartialUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersBulkPartialUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewExtrasSavedFiltersBulkPartialUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersBulkPartialUpdateOK creates a ExtrasSavedFiltersBulkPartialUpdateOK with default headers values +func NewExtrasSavedFiltersBulkPartialUpdateOK() *ExtrasSavedFiltersBulkPartialUpdateOK { + return &ExtrasSavedFiltersBulkPartialUpdateOK{} +} + +/* +ExtrasSavedFiltersBulkPartialUpdateOK describes a response with status code 200, with default header values. + +ExtrasSavedFiltersBulkPartialUpdateOK extras saved filters bulk partial update o k +*/ +type ExtrasSavedFiltersBulkPartialUpdateOK struct { + Payload *models.SavedFilter +} + +// IsSuccess returns true when this extras saved filters bulk partial update o k response has a 2xx status code +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters bulk partial update o k response has a 3xx status code +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters bulk partial update o k response has a 4xx status code +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters bulk partial update o k response has a 5xx status code +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters bulk partial update o k response a status code equal to that given +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) Error() string { + return fmt.Sprintf("[PATCH /extras/saved-filters/][%d] extrasSavedFiltersBulkPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) String() string { + return fmt.Sprintf("[PATCH /extras/saved-filters/][%d] extrasSavedFiltersBulkPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) GetPayload() *models.SavedFilter { + return o.Payload +} + +func (o *ExtrasSavedFiltersBulkPartialUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.SavedFilter) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_bulk_update_parameters.go b/netbox/client/extras/extras_saved_filters_bulk_update_parameters.go new file mode 100644 index 00000000..8265db5c --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_bulk_update_parameters.go @@ -0,0 +1,165 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewExtrasSavedFiltersBulkUpdateParams creates a new ExtrasSavedFiltersBulkUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersBulkUpdateParams() *ExtrasSavedFiltersBulkUpdateParams { + return &ExtrasSavedFiltersBulkUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersBulkUpdateParamsWithTimeout creates a new ExtrasSavedFiltersBulkUpdateParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersBulkUpdateParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersBulkUpdateParams { + return &ExtrasSavedFiltersBulkUpdateParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersBulkUpdateParamsWithContext creates a new ExtrasSavedFiltersBulkUpdateParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersBulkUpdateParamsWithContext(ctx context.Context) *ExtrasSavedFiltersBulkUpdateParams { + return &ExtrasSavedFiltersBulkUpdateParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersBulkUpdateParamsWithHTTPClient creates a new ExtrasSavedFiltersBulkUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersBulkUpdateParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersBulkUpdateParams { + return &ExtrasSavedFiltersBulkUpdateParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersBulkUpdateParams contains all the parameters to send to the API endpoint + + for the extras saved filters bulk update operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersBulkUpdateParams struct { + + // Data. + Data *models.SavedFilter + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters bulk update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersBulkUpdateParams) WithDefaults() *ExtrasSavedFiltersBulkUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters bulk update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersBulkUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersBulkUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) WithContext(ctx context.Context) *ExtrasSavedFiltersBulkUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersBulkUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) WithData(data *models.SavedFilter) *ExtrasSavedFiltersBulkUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the extras saved filters bulk update params +func (o *ExtrasSavedFiltersBulkUpdateParams) SetData(data *models.SavedFilter) { + o.Data = data +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersBulkUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_bulk_update_responses.go b/netbox/client/extras/extras_saved_filters_bulk_update_responses.go new file mode 100644 index 00000000..739e4f87 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_bulk_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersBulkUpdateReader is a Reader for the ExtrasSavedFiltersBulkUpdate structure. +type ExtrasSavedFiltersBulkUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersBulkUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewExtrasSavedFiltersBulkUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersBulkUpdateOK creates a ExtrasSavedFiltersBulkUpdateOK with default headers values +func NewExtrasSavedFiltersBulkUpdateOK() *ExtrasSavedFiltersBulkUpdateOK { + return &ExtrasSavedFiltersBulkUpdateOK{} +} + +/* +ExtrasSavedFiltersBulkUpdateOK describes a response with status code 200, with default header values. + +ExtrasSavedFiltersBulkUpdateOK extras saved filters bulk update o k +*/ +type ExtrasSavedFiltersBulkUpdateOK struct { + Payload *models.SavedFilter +} + +// IsSuccess returns true when this extras saved filters bulk update o k response has a 2xx status code +func (o *ExtrasSavedFiltersBulkUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters bulk update o k response has a 3xx status code +func (o *ExtrasSavedFiltersBulkUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters bulk update o k response has a 4xx status code +func (o *ExtrasSavedFiltersBulkUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters bulk update o k response has a 5xx status code +func (o *ExtrasSavedFiltersBulkUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters bulk update o k response a status code equal to that given +func (o *ExtrasSavedFiltersBulkUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ExtrasSavedFiltersBulkUpdateOK) Error() string { + return fmt.Sprintf("[PUT /extras/saved-filters/][%d] extrasSavedFiltersBulkUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersBulkUpdateOK) String() string { + return fmt.Sprintf("[PUT /extras/saved-filters/][%d] extrasSavedFiltersBulkUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersBulkUpdateOK) GetPayload() *models.SavedFilter { + return o.Payload +} + +func (o *ExtrasSavedFiltersBulkUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.SavedFilter) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_create_parameters.go b/netbox/client/extras/extras_saved_filters_create_parameters.go new file mode 100644 index 00000000..1ed9b44f --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_create_parameters.go @@ -0,0 +1,165 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewExtrasSavedFiltersCreateParams creates a new ExtrasSavedFiltersCreateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersCreateParams() *ExtrasSavedFiltersCreateParams { + return &ExtrasSavedFiltersCreateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersCreateParamsWithTimeout creates a new ExtrasSavedFiltersCreateParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersCreateParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersCreateParams { + return &ExtrasSavedFiltersCreateParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersCreateParamsWithContext creates a new ExtrasSavedFiltersCreateParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersCreateParamsWithContext(ctx context.Context) *ExtrasSavedFiltersCreateParams { + return &ExtrasSavedFiltersCreateParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersCreateParamsWithHTTPClient creates a new ExtrasSavedFiltersCreateParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersCreateParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersCreateParams { + return &ExtrasSavedFiltersCreateParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersCreateParams contains all the parameters to send to the API endpoint + + for the extras saved filters create operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersCreateParams struct { + + // Data. + Data *models.SavedFilter + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters create params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersCreateParams) WithDefaults() *ExtrasSavedFiltersCreateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters create params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersCreateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersCreateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) WithContext(ctx context.Context) *ExtrasSavedFiltersCreateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersCreateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) WithData(data *models.SavedFilter) *ExtrasSavedFiltersCreateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the extras saved filters create params +func (o *ExtrasSavedFiltersCreateParams) SetData(data *models.SavedFilter) { + o.Data = data +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_create_responses.go b/netbox/client/extras/extras_saved_filters_create_responses.go new file mode 100644 index 00000000..cb6ac9f2 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_create_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersCreateReader is a Reader for the ExtrasSavedFiltersCreate structure. +type ExtrasSavedFiltersCreateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewExtrasSavedFiltersCreateCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersCreateCreated creates a ExtrasSavedFiltersCreateCreated with default headers values +func NewExtrasSavedFiltersCreateCreated() *ExtrasSavedFiltersCreateCreated { + return &ExtrasSavedFiltersCreateCreated{} +} + +/* +ExtrasSavedFiltersCreateCreated describes a response with status code 201, with default header values. + +ExtrasSavedFiltersCreateCreated extras saved filters create created +*/ +type ExtrasSavedFiltersCreateCreated struct { + Payload *models.SavedFilter +} + +// IsSuccess returns true when this extras saved filters create created response has a 2xx status code +func (o *ExtrasSavedFiltersCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters create created response has a 3xx status code +func (o *ExtrasSavedFiltersCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters create created response has a 4xx status code +func (o *ExtrasSavedFiltersCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters create created response has a 5xx status code +func (o *ExtrasSavedFiltersCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters create created response a status code equal to that given +func (o *ExtrasSavedFiltersCreateCreated) IsCode(code int) bool { + return code == 201 +} + +func (o *ExtrasSavedFiltersCreateCreated) Error() string { + return fmt.Sprintf("[POST /extras/saved-filters/][%d] extrasSavedFiltersCreateCreated %+v", 201, o.Payload) +} + +func (o *ExtrasSavedFiltersCreateCreated) String() string { + return fmt.Sprintf("[POST /extras/saved-filters/][%d] extrasSavedFiltersCreateCreated %+v", 201, o.Payload) +} + +func (o *ExtrasSavedFiltersCreateCreated) GetPayload() *models.SavedFilter { + return o.Payload +} + +func (o *ExtrasSavedFiltersCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.SavedFilter) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_delete_parameters.go b/netbox/client/extras/extras_saved_filters_delete_parameters.go new file mode 100644 index 00000000..c782c368 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_delete_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewExtrasSavedFiltersDeleteParams creates a new ExtrasSavedFiltersDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersDeleteParams() *ExtrasSavedFiltersDeleteParams { + return &ExtrasSavedFiltersDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersDeleteParamsWithTimeout creates a new ExtrasSavedFiltersDeleteParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersDeleteParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersDeleteParams { + return &ExtrasSavedFiltersDeleteParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersDeleteParamsWithContext creates a new ExtrasSavedFiltersDeleteParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersDeleteParamsWithContext(ctx context.Context) *ExtrasSavedFiltersDeleteParams { + return &ExtrasSavedFiltersDeleteParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersDeleteParamsWithHTTPClient creates a new ExtrasSavedFiltersDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersDeleteParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersDeleteParams { + return &ExtrasSavedFiltersDeleteParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersDeleteParams contains all the parameters to send to the API endpoint + + for the extras saved filters delete operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersDeleteParams struct { + + /* ID. + + A unique integer value identifying this saved filter. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersDeleteParams) WithDefaults() *ExtrasSavedFiltersDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) WithContext(ctx context.Context) *ExtrasSavedFiltersDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) WithID(id int64) *ExtrasSavedFiltersDeleteParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras saved filters delete params +func (o *ExtrasSavedFiltersDeleteParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_delete_responses.go b/netbox/client/extras/extras_saved_filters_delete_responses.go new file mode 100644 index 00000000..e8c4a4a4 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_delete_responses.go @@ -0,0 +1,98 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// ExtrasSavedFiltersDeleteReader is a Reader for the ExtrasSavedFiltersDelete structure. +type ExtrasSavedFiltersDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewExtrasSavedFiltersDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersDeleteNoContent creates a ExtrasSavedFiltersDeleteNoContent with default headers values +func NewExtrasSavedFiltersDeleteNoContent() *ExtrasSavedFiltersDeleteNoContent { + return &ExtrasSavedFiltersDeleteNoContent{} +} + +/* +ExtrasSavedFiltersDeleteNoContent describes a response with status code 204, with default header values. + +ExtrasSavedFiltersDeleteNoContent extras saved filters delete no content +*/ +type ExtrasSavedFiltersDeleteNoContent struct { +} + +// IsSuccess returns true when this extras saved filters delete no content response has a 2xx status code +func (o *ExtrasSavedFiltersDeleteNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters delete no content response has a 3xx status code +func (o *ExtrasSavedFiltersDeleteNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters delete no content response has a 4xx status code +func (o *ExtrasSavedFiltersDeleteNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters delete no content response has a 5xx status code +func (o *ExtrasSavedFiltersDeleteNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters delete no content response a status code equal to that given +func (o *ExtrasSavedFiltersDeleteNoContent) IsCode(code int) bool { + return code == 204 +} + +func (o *ExtrasSavedFiltersDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /extras/saved-filters/{id}/][%d] extrasSavedFiltersDeleteNoContent ", 204) +} + +func (o *ExtrasSavedFiltersDeleteNoContent) String() string { + return fmt.Sprintf("[DELETE /extras/saved-filters/{id}/][%d] extrasSavedFiltersDeleteNoContent ", 204) +} + +func (o *ExtrasSavedFiltersDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_list_parameters.go b/netbox/client/extras/extras_saved_filters_list_parameters.go new file mode 100644 index 00000000..55c5bb7c --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_list_parameters.go @@ -0,0 +1,2386 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewExtrasSavedFiltersListParams creates a new ExtrasSavedFiltersListParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersListParams() *ExtrasSavedFiltersListParams { + return &ExtrasSavedFiltersListParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersListParamsWithTimeout creates a new ExtrasSavedFiltersListParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersListParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersListParams { + return &ExtrasSavedFiltersListParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersListParamsWithContext creates a new ExtrasSavedFiltersListParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersListParamsWithContext(ctx context.Context) *ExtrasSavedFiltersListParams { + return &ExtrasSavedFiltersListParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersListParamsWithHTTPClient creates a new ExtrasSavedFiltersListParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersListParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersListParams { + return &ExtrasSavedFiltersListParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersListParams contains all the parameters to send to the API endpoint + + for the extras saved filters list operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersListParams struct { + + // ContentTypeID. + ContentTypeID *string + + // ContentTypeIDGt. + ContentTypeIDGt *string + + // ContentTypeIDGte. + ContentTypeIDGte *string + + // ContentTypeIDLt. + ContentTypeIDLt *string + + // ContentTypeIDLte. + ContentTypeIDLte *string + + // ContentTypeIDn. + ContentTypeIDn *string + + // ContentTypes. + ContentTypes *string + + // ContentTypesIc. + ContentTypesIc *string + + // ContentTypesIe. + ContentTypesIe *string + + // ContentTypesIew. + ContentTypesIew *string + + // ContentTypesIsw. + ContentTypesIsw *string + + // ContentTypesn. + ContentTypesn *string + + // ContentTypesNic. + ContentTypesNic *string + + // ContentTypesNie. + ContentTypesNie *string + + // ContentTypesNiew. + ContentTypesNiew *string + + // ContentTypesNisw. + ContentTypesNisw *string + + // Description. + Description *string + + // DescriptionEmpty. + DescriptionEmpty *string + + // DescriptionIc. + DescriptionIc *string + + // DescriptionIe. + DescriptionIe *string + + // DescriptionIew. + DescriptionIew *string + + // DescriptionIsw. + DescriptionIsw *string + + // Descriptionn. + Descriptionn *string + + // DescriptionNic. + DescriptionNic *string + + // DescriptionNie. + DescriptionNie *string + + // DescriptionNiew. + DescriptionNiew *string + + // DescriptionNisw. + DescriptionNisw *string + + // Enabled. + Enabled *string + + // ID. + ID *string + + // IDGt. + IDGt *string + + // IDGte. + IDGte *string + + // IDLt. + IDLt *string + + // IDLte. + IDLte *string + + // IDn. + IDn *string + + /* Limit. + + Number of results to return per page. + */ + Limit *int64 + + // Name. + Name *string + + // NameEmpty. + NameEmpty *string + + // NameIc. + NameIc *string + + // NameIe. + NameIe *string + + // NameIew. + NameIew *string + + // NameIsw. + NameIsw *string + + // Namen. + Namen *string + + // NameNic. + NameNic *string + + // NameNie. + NameNie *string + + // NameNiew. + NameNiew *string + + // NameNisw. + NameNisw *string + + /* Offset. + + The initial index from which to return the results. + */ + Offset *int64 + + /* Ordering. + + Which field to use when ordering the results. + */ + Ordering *string + + // Q. + Q *string + + // Shared. + Shared *string + + // Slug. + Slug *string + + // SlugEmpty. + SlugEmpty *string + + // SlugIc. + SlugIc *string + + // SlugIe. + SlugIe *string + + // SlugIew. + SlugIew *string + + // SlugIsw. + SlugIsw *string + + // Slugn. + Slugn *string + + // SlugNic. + SlugNic *string + + // SlugNie. + SlugNie *string + + // SlugNiew. + SlugNiew *string + + // SlugNisw. + SlugNisw *string + + // Usable. + Usable *string + + // User. + User *string + + // Usern. + Usern *string + + // UserID. + UserID *string + + // UserIDn. + UserIDn *string + + // Weight. + Weight *string + + // WeightGt. + WeightGt *string + + // WeightGte. + WeightGte *string + + // WeightLt. + WeightLt *string + + // WeightLte. + WeightLte *string + + // Weightn. + Weightn *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersListParams) WithDefaults() *ExtrasSavedFiltersListParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersListParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContext(ctx context.Context) *ExtrasSavedFiltersListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContentTypeID adds the contentTypeID to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypeID(contentTypeID *string) *ExtrasSavedFiltersListParams { + o.SetContentTypeID(contentTypeID) + return o +} + +// SetContentTypeID adds the contentTypeId to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypeID(contentTypeID *string) { + o.ContentTypeID = contentTypeID +} + +// WithContentTypeIDGt adds the contentTypeIDGt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypeIDGt(contentTypeIDGt *string) *ExtrasSavedFiltersListParams { + o.SetContentTypeIDGt(contentTypeIDGt) + return o +} + +// SetContentTypeIDGt adds the contentTypeIdGt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypeIDGt(contentTypeIDGt *string) { + o.ContentTypeIDGt = contentTypeIDGt +} + +// WithContentTypeIDGte adds the contentTypeIDGte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypeIDGte(contentTypeIDGte *string) *ExtrasSavedFiltersListParams { + o.SetContentTypeIDGte(contentTypeIDGte) + return o +} + +// SetContentTypeIDGte adds the contentTypeIdGte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypeIDGte(contentTypeIDGte *string) { + o.ContentTypeIDGte = contentTypeIDGte +} + +// WithContentTypeIDLt adds the contentTypeIDLt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypeIDLt(contentTypeIDLt *string) *ExtrasSavedFiltersListParams { + o.SetContentTypeIDLt(contentTypeIDLt) + return o +} + +// SetContentTypeIDLt adds the contentTypeIdLt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypeIDLt(contentTypeIDLt *string) { + o.ContentTypeIDLt = contentTypeIDLt +} + +// WithContentTypeIDLte adds the contentTypeIDLte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypeIDLte(contentTypeIDLte *string) *ExtrasSavedFiltersListParams { + o.SetContentTypeIDLte(contentTypeIDLte) + return o +} + +// SetContentTypeIDLte adds the contentTypeIdLte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypeIDLte(contentTypeIDLte *string) { + o.ContentTypeIDLte = contentTypeIDLte +} + +// WithContentTypeIDn adds the contentTypeIDn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypeIDn(contentTypeIDn *string) *ExtrasSavedFiltersListParams { + o.SetContentTypeIDn(contentTypeIDn) + return o +} + +// SetContentTypeIDn adds the contentTypeIdN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypeIDn(contentTypeIDn *string) { + o.ContentTypeIDn = contentTypeIDn +} + +// WithContentTypes adds the contentTypes to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypes(contentTypes *string) *ExtrasSavedFiltersListParams { + o.SetContentTypes(contentTypes) + return o +} + +// SetContentTypes adds the contentTypes to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypes(contentTypes *string) { + o.ContentTypes = contentTypes +} + +// WithContentTypesIc adds the contentTypesIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesIc(contentTypesIc *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesIc(contentTypesIc) + return o +} + +// SetContentTypesIc adds the contentTypesIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesIc(contentTypesIc *string) { + o.ContentTypesIc = contentTypesIc +} + +// WithContentTypesIe adds the contentTypesIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesIe(contentTypesIe *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesIe(contentTypesIe) + return o +} + +// SetContentTypesIe adds the contentTypesIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesIe(contentTypesIe *string) { + o.ContentTypesIe = contentTypesIe +} + +// WithContentTypesIew adds the contentTypesIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesIew(contentTypesIew *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesIew(contentTypesIew) + return o +} + +// SetContentTypesIew adds the contentTypesIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesIew(contentTypesIew *string) { + o.ContentTypesIew = contentTypesIew +} + +// WithContentTypesIsw adds the contentTypesIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesIsw(contentTypesIsw *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesIsw(contentTypesIsw) + return o +} + +// SetContentTypesIsw adds the contentTypesIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesIsw(contentTypesIsw *string) { + o.ContentTypesIsw = contentTypesIsw +} + +// WithContentTypesn adds the contentTypesn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesn(contentTypesn *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesn(contentTypesn) + return o +} + +// SetContentTypesn adds the contentTypesN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesn(contentTypesn *string) { + o.ContentTypesn = contentTypesn +} + +// WithContentTypesNic adds the contentTypesNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesNic(contentTypesNic *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesNic(contentTypesNic) + return o +} + +// SetContentTypesNic adds the contentTypesNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesNic(contentTypesNic *string) { + o.ContentTypesNic = contentTypesNic +} + +// WithContentTypesNie adds the contentTypesNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesNie(contentTypesNie *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesNie(contentTypesNie) + return o +} + +// SetContentTypesNie adds the contentTypesNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesNie(contentTypesNie *string) { + o.ContentTypesNie = contentTypesNie +} + +// WithContentTypesNiew adds the contentTypesNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesNiew(contentTypesNiew *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesNiew(contentTypesNiew) + return o +} + +// SetContentTypesNiew adds the contentTypesNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesNiew(contentTypesNiew *string) { + o.ContentTypesNiew = contentTypesNiew +} + +// WithContentTypesNisw adds the contentTypesNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithContentTypesNisw(contentTypesNisw *string) *ExtrasSavedFiltersListParams { + o.SetContentTypesNisw(contentTypesNisw) + return o +} + +// SetContentTypesNisw adds the contentTypesNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetContentTypesNisw(contentTypesNisw *string) { + o.ContentTypesNisw = contentTypesNisw +} + +// WithDescription adds the description to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescription(description *string) *ExtrasSavedFiltersListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionEmpty adds the descriptionEmpty to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + +// WithDescriptionIc adds the descriptionIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionIc(descriptionIc *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionIe(descriptionIe *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionIew(descriptionIew *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionIsw(descriptionIsw *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionn(descriptionn *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionNic(descriptionNic *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionNie(descriptionNie *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionNiew(descriptionNiew *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithDescriptionNisw(descriptionNisw *string) *ExtrasSavedFiltersListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + +// WithEnabled adds the enabled to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithEnabled(enabled *string) *ExtrasSavedFiltersListParams { + o.SetEnabled(enabled) + return o +} + +// SetEnabled adds the enabled to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetEnabled(enabled *string) { + o.Enabled = enabled +} + +// WithID adds the id to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithID(id *string) *ExtrasSavedFiltersListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithIDGt(iDGt *string) *ExtrasSavedFiltersListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithIDGte(iDGte *string) *ExtrasSavedFiltersListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithIDLt(iDLt *string) *ExtrasSavedFiltersListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithIDLte(iDLte *string) *ExtrasSavedFiltersListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithIDn(iDn *string) *ExtrasSavedFiltersListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + +// WithLimit adds the limit to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithLimit(limit *int64) *ExtrasSavedFiltersListParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithName adds the name to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithName(name *string) *ExtrasSavedFiltersListParams { + o.SetName(name) + return o +} + +// SetName adds the name to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetName(name *string) { + o.Name = name +} + +// WithNameEmpty adds the nameEmpty to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameEmpty(nameEmpty *string) *ExtrasSavedFiltersListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + +// WithNameIc adds the nameIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameIc(nameIc *string) *ExtrasSavedFiltersListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameIe(nameIe *string) *ExtrasSavedFiltersListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameIew(nameIew *string) *ExtrasSavedFiltersListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameIsw(nameIsw *string) *ExtrasSavedFiltersListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNamen(namen *string) *ExtrasSavedFiltersListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameNic(nameNic *string) *ExtrasSavedFiltersListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameNie(nameNie *string) *ExtrasSavedFiltersListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameNiew(nameNiew *string) *ExtrasSavedFiltersListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithNameNisw(nameNisw *string) *ExtrasSavedFiltersListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + +// WithOffset adds the offset to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithOffset(offset *int64) *ExtrasSavedFiltersListParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WithOrdering adds the ordering to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithOrdering(ordering *string) *ExtrasSavedFiltersListParams { + o.SetOrdering(ordering) + return o +} + +// SetOrdering adds the ordering to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetOrdering(ordering *string) { + o.Ordering = ordering +} + +// WithQ adds the q to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithQ(q *string) *ExtrasSavedFiltersListParams { + o.SetQ(q) + return o +} + +// SetQ adds the q to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetQ(q *string) { + o.Q = q +} + +// WithShared adds the shared to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithShared(shared *string) *ExtrasSavedFiltersListParams { + o.SetShared(shared) + return o +} + +// SetShared adds the shared to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetShared(shared *string) { + o.Shared = shared +} + +// WithSlug adds the slug to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlug(slug *string) *ExtrasSavedFiltersListParams { + o.SetSlug(slug) + return o +} + +// SetSlug adds the slug to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlug(slug *string) { + o.Slug = slug +} + +// WithSlugEmpty adds the slugEmpty to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugEmpty(slugEmpty *string) *ExtrasSavedFiltersListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + +// WithSlugIc adds the slugIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugIc(slugIc *string) *ExtrasSavedFiltersListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugIe(slugIe *string) *ExtrasSavedFiltersListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugIew(slugIew *string) *ExtrasSavedFiltersListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugIsw(slugIsw *string) *ExtrasSavedFiltersListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugn(slugn *string) *ExtrasSavedFiltersListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugNic(slugNic *string) *ExtrasSavedFiltersListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugNie(slugNie *string) *ExtrasSavedFiltersListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugNiew(slugNiew *string) *ExtrasSavedFiltersListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithSlugNisw(slugNisw *string) *ExtrasSavedFiltersListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + +// WithUsable adds the usable to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithUsable(usable *string) *ExtrasSavedFiltersListParams { + o.SetUsable(usable) + return o +} + +// SetUsable adds the usable to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetUsable(usable *string) { + o.Usable = usable +} + +// WithUser adds the user to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithUser(user *string) *ExtrasSavedFiltersListParams { + o.SetUser(user) + return o +} + +// SetUser adds the user to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetUser(user *string) { + o.User = user +} + +// WithUsern adds the usern to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithUsern(usern *string) *ExtrasSavedFiltersListParams { + o.SetUsern(usern) + return o +} + +// SetUsern adds the userN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetUsern(usern *string) { + o.Usern = usern +} + +// WithUserID adds the userID to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithUserID(userID *string) *ExtrasSavedFiltersListParams { + o.SetUserID(userID) + return o +} + +// SetUserID adds the userId to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetUserID(userID *string) { + o.UserID = userID +} + +// WithUserIDn adds the userIDn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithUserIDn(userIDn *string) *ExtrasSavedFiltersListParams { + o.SetUserIDn(userIDn) + return o +} + +// SetUserIDn adds the userIdN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetUserIDn(userIDn *string) { + o.UserIDn = userIDn +} + +// WithWeight adds the weight to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithWeight(weight *string) *ExtrasSavedFiltersListParams { + o.SetWeight(weight) + return o +} + +// SetWeight adds the weight to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetWeight(weight *string) { + o.Weight = weight +} + +// WithWeightGt adds the weightGt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithWeightGt(weightGt *string) *ExtrasSavedFiltersListParams { + o.SetWeightGt(weightGt) + return o +} + +// SetWeightGt adds the weightGt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetWeightGt(weightGt *string) { + o.WeightGt = weightGt +} + +// WithWeightGte adds the weightGte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithWeightGte(weightGte *string) *ExtrasSavedFiltersListParams { + o.SetWeightGte(weightGte) + return o +} + +// SetWeightGte adds the weightGte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetWeightGte(weightGte *string) { + o.WeightGte = weightGte +} + +// WithWeightLt adds the weightLt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithWeightLt(weightLt *string) *ExtrasSavedFiltersListParams { + o.SetWeightLt(weightLt) + return o +} + +// SetWeightLt adds the weightLt to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetWeightLt(weightLt *string) { + o.WeightLt = weightLt +} + +// WithWeightLte adds the weightLte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithWeightLte(weightLte *string) *ExtrasSavedFiltersListParams { + o.SetWeightLte(weightLte) + return o +} + +// SetWeightLte adds the weightLte to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetWeightLte(weightLte *string) { + o.WeightLte = weightLte +} + +// WithWeightn adds the weightn to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) WithWeightn(weightn *string) *ExtrasSavedFiltersListParams { + o.SetWeightn(weightn) + return o +} + +// SetWeightn adds the weightN to the extras saved filters list params +func (o *ExtrasSavedFiltersListParams) SetWeightn(weightn *string) { + o.Weightn = weightn +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ContentTypeID != nil { + + // query param content_type_id + var qrContentTypeID string + + if o.ContentTypeID != nil { + qrContentTypeID = *o.ContentTypeID + } + qContentTypeID := qrContentTypeID + if qContentTypeID != "" { + + if err := r.SetQueryParam("content_type_id", qContentTypeID); err != nil { + return err + } + } + } + + if o.ContentTypeIDGt != nil { + + // query param content_type_id__gt + var qrContentTypeIDGt string + + if o.ContentTypeIDGt != nil { + qrContentTypeIDGt = *o.ContentTypeIDGt + } + qContentTypeIDGt := qrContentTypeIDGt + if qContentTypeIDGt != "" { + + if err := r.SetQueryParam("content_type_id__gt", qContentTypeIDGt); err != nil { + return err + } + } + } + + if o.ContentTypeIDGte != nil { + + // query param content_type_id__gte + var qrContentTypeIDGte string + + if o.ContentTypeIDGte != nil { + qrContentTypeIDGte = *o.ContentTypeIDGte + } + qContentTypeIDGte := qrContentTypeIDGte + if qContentTypeIDGte != "" { + + if err := r.SetQueryParam("content_type_id__gte", qContentTypeIDGte); err != nil { + return err + } + } + } + + if o.ContentTypeIDLt != nil { + + // query param content_type_id__lt + var qrContentTypeIDLt string + + if o.ContentTypeIDLt != nil { + qrContentTypeIDLt = *o.ContentTypeIDLt + } + qContentTypeIDLt := qrContentTypeIDLt + if qContentTypeIDLt != "" { + + if err := r.SetQueryParam("content_type_id__lt", qContentTypeIDLt); err != nil { + return err + } + } + } + + if o.ContentTypeIDLte != nil { + + // query param content_type_id__lte + var qrContentTypeIDLte string + + if o.ContentTypeIDLte != nil { + qrContentTypeIDLte = *o.ContentTypeIDLte + } + qContentTypeIDLte := qrContentTypeIDLte + if qContentTypeIDLte != "" { + + if err := r.SetQueryParam("content_type_id__lte", qContentTypeIDLte); err != nil { + return err + } + } + } + + if o.ContentTypeIDn != nil { + + // query param content_type_id__n + var qrContentTypeIDn string + + if o.ContentTypeIDn != nil { + qrContentTypeIDn = *o.ContentTypeIDn + } + qContentTypeIDn := qrContentTypeIDn + if qContentTypeIDn != "" { + + if err := r.SetQueryParam("content_type_id__n", qContentTypeIDn); err != nil { + return err + } + } + } + + if o.ContentTypes != nil { + + // query param content_types + var qrContentTypes string + + if o.ContentTypes != nil { + qrContentTypes = *o.ContentTypes + } + qContentTypes := qrContentTypes + if qContentTypes != "" { + + if err := r.SetQueryParam("content_types", qContentTypes); err != nil { + return err + } + } + } + + if o.ContentTypesIc != nil { + + // query param content_types__ic + var qrContentTypesIc string + + if o.ContentTypesIc != nil { + qrContentTypesIc = *o.ContentTypesIc + } + qContentTypesIc := qrContentTypesIc + if qContentTypesIc != "" { + + if err := r.SetQueryParam("content_types__ic", qContentTypesIc); err != nil { + return err + } + } + } + + if o.ContentTypesIe != nil { + + // query param content_types__ie + var qrContentTypesIe string + + if o.ContentTypesIe != nil { + qrContentTypesIe = *o.ContentTypesIe + } + qContentTypesIe := qrContentTypesIe + if qContentTypesIe != "" { + + if err := r.SetQueryParam("content_types__ie", qContentTypesIe); err != nil { + return err + } + } + } + + if o.ContentTypesIew != nil { + + // query param content_types__iew + var qrContentTypesIew string + + if o.ContentTypesIew != nil { + qrContentTypesIew = *o.ContentTypesIew + } + qContentTypesIew := qrContentTypesIew + if qContentTypesIew != "" { + + if err := r.SetQueryParam("content_types__iew", qContentTypesIew); err != nil { + return err + } + } + } + + if o.ContentTypesIsw != nil { + + // query param content_types__isw + var qrContentTypesIsw string + + if o.ContentTypesIsw != nil { + qrContentTypesIsw = *o.ContentTypesIsw + } + qContentTypesIsw := qrContentTypesIsw + if qContentTypesIsw != "" { + + if err := r.SetQueryParam("content_types__isw", qContentTypesIsw); err != nil { + return err + } + } + } + + if o.ContentTypesn != nil { + + // query param content_types__n + var qrContentTypesn string + + if o.ContentTypesn != nil { + qrContentTypesn = *o.ContentTypesn + } + qContentTypesn := qrContentTypesn + if qContentTypesn != "" { + + if err := r.SetQueryParam("content_types__n", qContentTypesn); err != nil { + return err + } + } + } + + if o.ContentTypesNic != nil { + + // query param content_types__nic + var qrContentTypesNic string + + if o.ContentTypesNic != nil { + qrContentTypesNic = *o.ContentTypesNic + } + qContentTypesNic := qrContentTypesNic + if qContentTypesNic != "" { + + if err := r.SetQueryParam("content_types__nic", qContentTypesNic); err != nil { + return err + } + } + } + + if o.ContentTypesNie != nil { + + // query param content_types__nie + var qrContentTypesNie string + + if o.ContentTypesNie != nil { + qrContentTypesNie = *o.ContentTypesNie + } + qContentTypesNie := qrContentTypesNie + if qContentTypesNie != "" { + + if err := r.SetQueryParam("content_types__nie", qContentTypesNie); err != nil { + return err + } + } + } + + if o.ContentTypesNiew != nil { + + // query param content_types__niew + var qrContentTypesNiew string + + if o.ContentTypesNiew != nil { + qrContentTypesNiew = *o.ContentTypesNiew + } + qContentTypesNiew := qrContentTypesNiew + if qContentTypesNiew != "" { + + if err := r.SetQueryParam("content_types__niew", qContentTypesNiew); err != nil { + return err + } + } + } + + if o.ContentTypesNisw != nil { + + // query param content_types__nisw + var qrContentTypesNisw string + + if o.ContentTypesNisw != nil { + qrContentTypesNisw = *o.ContentTypesNisw + } + qContentTypesNisw := qrContentTypesNisw + if qContentTypesNisw != "" { + + if err := r.SetQueryParam("content_types__nisw", qContentTypesNisw); err != nil { + return err + } + } + } + + if o.Description != nil { + + // query param description + var qrDescription string + + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + } + + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + } + + if o.Enabled != nil { + + // query param enabled + var qrEnabled string + + if o.Enabled != nil { + qrEnabled = *o.Enabled + } + qEnabled := qrEnabled + if qEnabled != "" { + + if err := r.SetQueryParam("enabled", qEnabled); err != nil { + return err + } + } + } + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { + return err + } + } + } + + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if o.Ordering != nil { + + // query param ordering + var qrOrdering string + + if o.Ordering != nil { + qrOrdering = *o.Ordering + } + qOrdering := qrOrdering + if qOrdering != "" { + + if err := r.SetQueryParam("ordering", qOrdering); err != nil { + return err + } + } + } + + if o.Q != nil { + + // query param q + var qrQ string + + if o.Q != nil { + qrQ = *o.Q + } + qQ := qrQ + if qQ != "" { + + if err := r.SetQueryParam("q", qQ); err != nil { + return err + } + } + } + + if o.Shared != nil { + + // query param shared + var qrShared string + + if o.Shared != nil { + qrShared = *o.Shared + } + qShared := qrShared + if qShared != "" { + + if err := r.SetQueryParam("shared", qShared); err != nil { + return err + } + } + } + + if o.Slug != nil { + + // query param slug + var qrSlug string + + if o.Slug != nil { + qrSlug = *o.Slug + } + qSlug := qrSlug + if qSlug != "" { + + if err := r.SetQueryParam("slug", qSlug); err != nil { + return err + } + } + } + + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + } + + if o.Usable != nil { + + // query param usable + var qrUsable string + + if o.Usable != nil { + qrUsable = *o.Usable + } + qUsable := qrUsable + if qUsable != "" { + + if err := r.SetQueryParam("usable", qUsable); err != nil { + return err + } + } + } + + if o.User != nil { + + // query param user + var qrUser string + + if o.User != nil { + qrUser = *o.User + } + qUser := qrUser + if qUser != "" { + + if err := r.SetQueryParam("user", qUser); err != nil { + return err + } + } + } + + if o.Usern != nil { + + // query param user__n + var qrUsern string + + if o.Usern != nil { + qrUsern = *o.Usern + } + qUsern := qrUsern + if qUsern != "" { + + if err := r.SetQueryParam("user__n", qUsern); err != nil { + return err + } + } + } + + if o.UserID != nil { + + // query param user_id + var qrUserID string + + if o.UserID != nil { + qrUserID = *o.UserID + } + qUserID := qrUserID + if qUserID != "" { + + if err := r.SetQueryParam("user_id", qUserID); err != nil { + return err + } + } + } + + if o.UserIDn != nil { + + // query param user_id__n + var qrUserIDn string + + if o.UserIDn != nil { + qrUserIDn = *o.UserIDn + } + qUserIDn := qrUserIDn + if qUserIDn != "" { + + if err := r.SetQueryParam("user_id__n", qUserIDn); err != nil { + return err + } + } + } + + if o.Weight != nil { + + // query param weight + var qrWeight string + + if o.Weight != nil { + qrWeight = *o.Weight + } + qWeight := qrWeight + if qWeight != "" { + + if err := r.SetQueryParam("weight", qWeight); err != nil { + return err + } + } + } + + if o.WeightGt != nil { + + // query param weight__gt + var qrWeightGt string + + if o.WeightGt != nil { + qrWeightGt = *o.WeightGt + } + qWeightGt := qrWeightGt + if qWeightGt != "" { + + if err := r.SetQueryParam("weight__gt", qWeightGt); err != nil { + return err + } + } + } + + if o.WeightGte != nil { + + // query param weight__gte + var qrWeightGte string + + if o.WeightGte != nil { + qrWeightGte = *o.WeightGte + } + qWeightGte := qrWeightGte + if qWeightGte != "" { + + if err := r.SetQueryParam("weight__gte", qWeightGte); err != nil { + return err + } + } + } + + if o.WeightLt != nil { + + // query param weight__lt + var qrWeightLt string + + if o.WeightLt != nil { + qrWeightLt = *o.WeightLt + } + qWeightLt := qrWeightLt + if qWeightLt != "" { + + if err := r.SetQueryParam("weight__lt", qWeightLt); err != nil { + return err + } + } + } + + if o.WeightLte != nil { + + // query param weight__lte + var qrWeightLte string + + if o.WeightLte != nil { + qrWeightLte = *o.WeightLte + } + qWeightLte := qrWeightLte + if qWeightLte != "" { + + if err := r.SetQueryParam("weight__lte", qWeightLte); err != nil { + return err + } + } + } + + if o.Weightn != nil { + + // query param weight__n + var qrWeightn string + + if o.Weightn != nil { + qrWeightn = *o.Weightn + } + qWeightn := qrWeightn + if qWeightn != "" { + + if err := r.SetQueryParam("weight__n", qWeightn); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_list_responses.go b/netbox/client/extras/extras_saved_filters_list_responses.go new file mode 100644 index 00000000..f42abf49 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_list_responses.go @@ -0,0 +1,279 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "fmt" + "io" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersListReader is a Reader for the ExtrasSavedFiltersList structure. +type ExtrasSavedFiltersListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewExtrasSavedFiltersListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersListOK creates a ExtrasSavedFiltersListOK with default headers values +func NewExtrasSavedFiltersListOK() *ExtrasSavedFiltersListOK { + return &ExtrasSavedFiltersListOK{} +} + +/* +ExtrasSavedFiltersListOK describes a response with status code 200, with default header values. + +ExtrasSavedFiltersListOK extras saved filters list o k +*/ +type ExtrasSavedFiltersListOK struct { + Payload *ExtrasSavedFiltersListOKBody +} + +// IsSuccess returns true when this extras saved filters list o k response has a 2xx status code +func (o *ExtrasSavedFiltersListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters list o k response has a 3xx status code +func (o *ExtrasSavedFiltersListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters list o k response has a 4xx status code +func (o *ExtrasSavedFiltersListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters list o k response has a 5xx status code +func (o *ExtrasSavedFiltersListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters list o k response a status code equal to that given +func (o *ExtrasSavedFiltersListOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ExtrasSavedFiltersListOK) Error() string { + return fmt.Sprintf("[GET /extras/saved-filters/][%d] extrasSavedFiltersListOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersListOK) String() string { + return fmt.Sprintf("[GET /extras/saved-filters/][%d] extrasSavedFiltersListOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersListOK) GetPayload() *ExtrasSavedFiltersListOKBody { + return o.Payload +} + +func (o *ExtrasSavedFiltersListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(ExtrasSavedFiltersListOKBody) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +/* +ExtrasSavedFiltersListOKBody extras saved filters list o k body +swagger:model ExtrasSavedFiltersListOKBody +*/ +type ExtrasSavedFiltersListOKBody struct { + + // count + // Required: true + Count *int64 `json:"count"` + + // next + // Format: uri + Next *strfmt.URI `json:"next,omitempty"` + + // previous + // Format: uri + Previous *strfmt.URI `json:"previous,omitempty"` + + // results + // Required: true + Results []*models.SavedFilter `json:"results"` +} + +// Validate validates this extras saved filters list o k body +func (o *ExtrasSavedFiltersListOKBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateCount(formats); err != nil { + res = append(res, err) + } + + if err := o.validateNext(formats); err != nil { + res = append(res, err) + } + + if err := o.validatePrevious(formats); err != nil { + res = append(res, err) + } + + if err := o.validateResults(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *ExtrasSavedFiltersListOKBody) validateCount(formats strfmt.Registry) error { + + if err := validate.Required("extrasSavedFiltersListOK"+"."+"count", "body", o.Count); err != nil { + return err + } + + return nil +} + +func (o *ExtrasSavedFiltersListOKBody) validateNext(formats strfmt.Registry) error { + if swag.IsZero(o.Next) { // not required + return nil + } + + if err := validate.FormatOf("extrasSavedFiltersListOK"+"."+"next", "body", "uri", o.Next.String(), formats); err != nil { + return err + } + + return nil +} + +func (o *ExtrasSavedFiltersListOKBody) validatePrevious(formats strfmt.Registry) error { + if swag.IsZero(o.Previous) { // not required + return nil + } + + if err := validate.FormatOf("extrasSavedFiltersListOK"+"."+"previous", "body", "uri", o.Previous.String(), formats); err != nil { + return err + } + + return nil +} + +func (o *ExtrasSavedFiltersListOKBody) validateResults(formats strfmt.Registry) error { + + if err := validate.Required("extrasSavedFiltersListOK"+"."+"results", "body", o.Results); err != nil { + return err + } + + for i := 0; i < len(o.Results); i++ { + if swag.IsZero(o.Results[i]) { // not required + continue + } + + if o.Results[i] != nil { + if err := o.Results[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("extrasSavedFiltersListOK" + "." + "results" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("extrasSavedFiltersListOK" + "." + "results" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this extras saved filters list o k body based on the context it is used +func (o *ExtrasSavedFiltersListOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateResults(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *ExtrasSavedFiltersListOKBody) contextValidateResults(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(o.Results); i++ { + + if o.Results[i] != nil { + if err := o.Results[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("extrasSavedFiltersListOK" + "." + "results" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("extrasSavedFiltersListOK" + "." + "results" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (o *ExtrasSavedFiltersListOKBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *ExtrasSavedFiltersListOKBody) UnmarshalBinary(b []byte) error { + var res ExtrasSavedFiltersListOKBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_partial_update_parameters.go b/netbox/client/extras/extras_saved_filters_partial_update_parameters.go new file mode 100644 index 00000000..47f086f4 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_partial_update_parameters.go @@ -0,0 +1,188 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewExtrasSavedFiltersPartialUpdateParams creates a new ExtrasSavedFiltersPartialUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersPartialUpdateParams() *ExtrasSavedFiltersPartialUpdateParams { + return &ExtrasSavedFiltersPartialUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersPartialUpdateParamsWithTimeout creates a new ExtrasSavedFiltersPartialUpdateParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersPartialUpdateParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersPartialUpdateParams { + return &ExtrasSavedFiltersPartialUpdateParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersPartialUpdateParamsWithContext creates a new ExtrasSavedFiltersPartialUpdateParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersPartialUpdateParamsWithContext(ctx context.Context) *ExtrasSavedFiltersPartialUpdateParams { + return &ExtrasSavedFiltersPartialUpdateParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersPartialUpdateParamsWithHTTPClient creates a new ExtrasSavedFiltersPartialUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersPartialUpdateParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersPartialUpdateParams { + return &ExtrasSavedFiltersPartialUpdateParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersPartialUpdateParams contains all the parameters to send to the API endpoint + + for the extras saved filters partial update operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersPartialUpdateParams struct { + + // Data. + Data *models.SavedFilter + + /* ID. + + A unique integer value identifying this saved filter. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersPartialUpdateParams) WithDefaults() *ExtrasSavedFiltersPartialUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters partial update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersPartialUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersPartialUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) WithContext(ctx context.Context) *ExtrasSavedFiltersPartialUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersPartialUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) WithData(data *models.SavedFilter) *ExtrasSavedFiltersPartialUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) SetData(data *models.SavedFilter) { + o.Data = data +} + +// WithID adds the id to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) WithID(id int64) *ExtrasSavedFiltersPartialUpdateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras saved filters partial update params +func (o *ExtrasSavedFiltersPartialUpdateParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_partial_update_responses.go b/netbox/client/extras/extras_saved_filters_partial_update_responses.go new file mode 100644 index 00000000..661d285a --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_partial_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersPartialUpdateReader is a Reader for the ExtrasSavedFiltersPartialUpdate structure. +type ExtrasSavedFiltersPartialUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersPartialUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewExtrasSavedFiltersPartialUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersPartialUpdateOK creates a ExtrasSavedFiltersPartialUpdateOK with default headers values +func NewExtrasSavedFiltersPartialUpdateOK() *ExtrasSavedFiltersPartialUpdateOK { + return &ExtrasSavedFiltersPartialUpdateOK{} +} + +/* +ExtrasSavedFiltersPartialUpdateOK describes a response with status code 200, with default header values. + +ExtrasSavedFiltersPartialUpdateOK extras saved filters partial update o k +*/ +type ExtrasSavedFiltersPartialUpdateOK struct { + Payload *models.SavedFilter +} + +// IsSuccess returns true when this extras saved filters partial update o k response has a 2xx status code +func (o *ExtrasSavedFiltersPartialUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters partial update o k response has a 3xx status code +func (o *ExtrasSavedFiltersPartialUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters partial update o k response has a 4xx status code +func (o *ExtrasSavedFiltersPartialUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters partial update o k response has a 5xx status code +func (o *ExtrasSavedFiltersPartialUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters partial update o k response a status code equal to that given +func (o *ExtrasSavedFiltersPartialUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ExtrasSavedFiltersPartialUpdateOK) Error() string { + return fmt.Sprintf("[PATCH /extras/saved-filters/{id}/][%d] extrasSavedFiltersPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersPartialUpdateOK) String() string { + return fmt.Sprintf("[PATCH /extras/saved-filters/{id}/][%d] extrasSavedFiltersPartialUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersPartialUpdateOK) GetPayload() *models.SavedFilter { + return o.Payload +} + +func (o *ExtrasSavedFiltersPartialUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.SavedFilter) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_read_parameters.go b/netbox/client/extras/extras_saved_filters_read_parameters.go new file mode 100644 index 00000000..452daf5c --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_read_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewExtrasSavedFiltersReadParams creates a new ExtrasSavedFiltersReadParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersReadParams() *ExtrasSavedFiltersReadParams { + return &ExtrasSavedFiltersReadParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersReadParamsWithTimeout creates a new ExtrasSavedFiltersReadParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersReadParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersReadParams { + return &ExtrasSavedFiltersReadParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersReadParamsWithContext creates a new ExtrasSavedFiltersReadParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersReadParamsWithContext(ctx context.Context) *ExtrasSavedFiltersReadParams { + return &ExtrasSavedFiltersReadParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersReadParamsWithHTTPClient creates a new ExtrasSavedFiltersReadParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersReadParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersReadParams { + return &ExtrasSavedFiltersReadParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersReadParams contains all the parameters to send to the API endpoint + + for the extras saved filters read operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersReadParams struct { + + /* ID. + + A unique integer value identifying this saved filter. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters read params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersReadParams) WithDefaults() *ExtrasSavedFiltersReadParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters read params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersReadParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersReadParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) WithContext(ctx context.Context) *ExtrasSavedFiltersReadParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersReadParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) WithID(id int64) *ExtrasSavedFiltersReadParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras saved filters read params +func (o *ExtrasSavedFiltersReadParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_read_responses.go b/netbox/client/extras/extras_saved_filters_read_responses.go new file mode 100644 index 00000000..70d77092 --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_read_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersReadReader is a Reader for the ExtrasSavedFiltersRead structure. +type ExtrasSavedFiltersReadReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewExtrasSavedFiltersReadOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersReadOK creates a ExtrasSavedFiltersReadOK with default headers values +func NewExtrasSavedFiltersReadOK() *ExtrasSavedFiltersReadOK { + return &ExtrasSavedFiltersReadOK{} +} + +/* +ExtrasSavedFiltersReadOK describes a response with status code 200, with default header values. + +ExtrasSavedFiltersReadOK extras saved filters read o k +*/ +type ExtrasSavedFiltersReadOK struct { + Payload *models.SavedFilter +} + +// IsSuccess returns true when this extras saved filters read o k response has a 2xx status code +func (o *ExtrasSavedFiltersReadOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters read o k response has a 3xx status code +func (o *ExtrasSavedFiltersReadOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters read o k response has a 4xx status code +func (o *ExtrasSavedFiltersReadOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters read o k response has a 5xx status code +func (o *ExtrasSavedFiltersReadOK) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters read o k response a status code equal to that given +func (o *ExtrasSavedFiltersReadOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ExtrasSavedFiltersReadOK) Error() string { + return fmt.Sprintf("[GET /extras/saved-filters/{id}/][%d] extrasSavedFiltersReadOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersReadOK) String() string { + return fmt.Sprintf("[GET /extras/saved-filters/{id}/][%d] extrasSavedFiltersReadOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersReadOK) GetPayload() *models.SavedFilter { + return o.Payload +} + +func (o *ExtrasSavedFiltersReadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.SavedFilter) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_update_parameters.go b/netbox/client/extras/extras_saved_filters_update_parameters.go new file mode 100644 index 00000000..24bd7d8b --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_update_parameters.go @@ -0,0 +1,188 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// NewExtrasSavedFiltersUpdateParams creates a new ExtrasSavedFiltersUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewExtrasSavedFiltersUpdateParams() *ExtrasSavedFiltersUpdateParams { + return &ExtrasSavedFiltersUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewExtrasSavedFiltersUpdateParamsWithTimeout creates a new ExtrasSavedFiltersUpdateParams object +// with the ability to set a timeout on a request. +func NewExtrasSavedFiltersUpdateParamsWithTimeout(timeout time.Duration) *ExtrasSavedFiltersUpdateParams { + return &ExtrasSavedFiltersUpdateParams{ + timeout: timeout, + } +} + +// NewExtrasSavedFiltersUpdateParamsWithContext creates a new ExtrasSavedFiltersUpdateParams object +// with the ability to set a context for a request. +func NewExtrasSavedFiltersUpdateParamsWithContext(ctx context.Context) *ExtrasSavedFiltersUpdateParams { + return &ExtrasSavedFiltersUpdateParams{ + Context: ctx, + } +} + +// NewExtrasSavedFiltersUpdateParamsWithHTTPClient creates a new ExtrasSavedFiltersUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewExtrasSavedFiltersUpdateParamsWithHTTPClient(client *http.Client) *ExtrasSavedFiltersUpdateParams { + return &ExtrasSavedFiltersUpdateParams{ + HTTPClient: client, + } +} + +/* +ExtrasSavedFiltersUpdateParams contains all the parameters to send to the API endpoint + + for the extras saved filters update operation. + + Typically these are written to a http.Request. +*/ +type ExtrasSavedFiltersUpdateParams struct { + + // Data. + Data *models.SavedFilter + + /* ID. + + A unique integer value identifying this saved filter. + */ + ID int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the extras saved filters update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersUpdateParams) WithDefaults() *ExtrasSavedFiltersUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the extras saved filters update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ExtrasSavedFiltersUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) WithTimeout(timeout time.Duration) *ExtrasSavedFiltersUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) WithContext(ctx context.Context) *ExtrasSavedFiltersUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) WithHTTPClient(client *http.Client) *ExtrasSavedFiltersUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithData adds the data to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) WithData(data *models.SavedFilter) *ExtrasSavedFiltersUpdateParams { + o.SetData(data) + return o +} + +// SetData adds the data to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) SetData(data *models.SavedFilter) { + o.Data = data +} + +// WithID adds the id to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) WithID(id int64) *ExtrasSavedFiltersUpdateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras saved filters update params +func (o *ExtrasSavedFiltersUpdateParams) SetID(id int64) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *ExtrasSavedFiltersUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Data != nil { + if err := r.SetBodyParam(o.Data); err != nil { + return err + } + } + + // path param id + if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/netbox/client/extras/extras_saved_filters_update_responses.go b/netbox/client/extras/extras_saved_filters_update_responses.go new file mode 100644 index 00000000..2b5f68cc --- /dev/null +++ b/netbox/client/extras/extras_saved_filters_update_responses.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package extras + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/smutel/go-netbox/v3/netbox/models" +) + +// ExtrasSavedFiltersUpdateReader is a Reader for the ExtrasSavedFiltersUpdate structure. +type ExtrasSavedFiltersUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ExtrasSavedFiltersUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewExtrasSavedFiltersUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewExtrasSavedFiltersUpdateOK creates a ExtrasSavedFiltersUpdateOK with default headers values +func NewExtrasSavedFiltersUpdateOK() *ExtrasSavedFiltersUpdateOK { + return &ExtrasSavedFiltersUpdateOK{} +} + +/* +ExtrasSavedFiltersUpdateOK describes a response with status code 200, with default header values. + +ExtrasSavedFiltersUpdateOK extras saved filters update o k +*/ +type ExtrasSavedFiltersUpdateOK struct { + Payload *models.SavedFilter +} + +// IsSuccess returns true when this extras saved filters update o k response has a 2xx status code +func (o *ExtrasSavedFiltersUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this extras saved filters update o k response has a 3xx status code +func (o *ExtrasSavedFiltersUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this extras saved filters update o k response has a 4xx status code +func (o *ExtrasSavedFiltersUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this extras saved filters update o k response has a 5xx status code +func (o *ExtrasSavedFiltersUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this extras saved filters update o k response a status code equal to that given +func (o *ExtrasSavedFiltersUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ExtrasSavedFiltersUpdateOK) Error() string { + return fmt.Sprintf("[PUT /extras/saved-filters/{id}/][%d] extrasSavedFiltersUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersUpdateOK) String() string { + return fmt.Sprintf("[PUT /extras/saved-filters/{id}/][%d] extrasSavedFiltersUpdateOK %+v", 200, o.Payload) +} + +func (o *ExtrasSavedFiltersUpdateOK) GetPayload() *models.SavedFilter { + return o.Payload +} + +func (o *ExtrasSavedFiltersUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.SavedFilter) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/netbox/client/extras/extras_tags_list_parameters.go b/netbox/client/extras/extras_tags_list_parameters.go index e6c17017..0273ba81 100644 --- a/netbox/client/extras/extras_tags_list_parameters.go +++ b/netbox/client/extras/extras_tags_list_parameters.go @@ -80,6 +80,9 @@ type ExtrasTagsListParams struct { // Color. Color *string + // ColorEmpty. + ColorEmpty *string + // ColorIc. ColorIc *string @@ -134,6 +137,9 @@ type ExtrasTagsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -206,6 +212,9 @@ type ExtrasTagsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -251,6 +260,9 @@ type ExtrasTagsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -342,6 +354,17 @@ func (o *ExtrasTagsListParams) SetColor(color *string) { o.Color = color } +// WithColorEmpty adds the colorEmpty to the extras tags list params +func (o *ExtrasTagsListParams) WithColorEmpty(colorEmpty *string) *ExtrasTagsListParams { + o.SetColorEmpty(colorEmpty) + return o +} + +// SetColorEmpty adds the colorEmpty to the extras tags list params +func (o *ExtrasTagsListParams) SetColorEmpty(colorEmpty *string) { + o.ColorEmpty = colorEmpty +} + // WithColorIc adds the colorIc to the extras tags list params func (o *ExtrasTagsListParams) WithColorIc(colorIc *string) *ExtrasTagsListParams { o.SetColorIc(colorIc) @@ -540,6 +563,17 @@ func (o *ExtrasTagsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the extras tags list params +func (o *ExtrasTagsListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasTagsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the extras tags list params +func (o *ExtrasTagsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the extras tags list params func (o *ExtrasTagsListParams) WithDescriptionIc(descriptionIc *string) *ExtrasTagsListParams { o.SetDescriptionIc(descriptionIc) @@ -793,6 +827,17 @@ func (o *ExtrasTagsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras tags list params +func (o *ExtrasTagsListParams) WithNameEmpty(nameEmpty *string) *ExtrasTagsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras tags list params +func (o *ExtrasTagsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras tags list params func (o *ExtrasTagsListParams) WithNameIc(nameIc *string) *ExtrasTagsListParams { o.SetNameIc(nameIc) @@ -936,6 +981,17 @@ func (o *ExtrasTagsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugEmpty(slugEmpty *string) *ExtrasTagsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the extras tags list params func (o *ExtrasTagsListParams) WithSlugIc(slugIc *string) *ExtrasTagsListParams { o.SetSlugIc(slugIc) @@ -1060,6 +1116,23 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.ColorEmpty != nil { + + // query param color__empty + var qrColorEmpty string + + if o.ColorEmpty != nil { + qrColorEmpty = *o.ColorEmpty + } + qColorEmpty := qrColorEmpty + if qColorEmpty != "" { + + if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { + return err + } + } + } + if o.ColorIc != nil { // query param color__ic @@ -1366,6 +1439,23 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1757,6 +1847,23 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1978,6 +2085,23 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/extras/extras_webhooks_list_parameters.go b/netbox/client/extras/extras_webhooks_list_parameters.go index 34e7634e..df719d80 100644 --- a/netbox/client/extras/extras_webhooks_list_parameters.go +++ b/netbox/client/extras/extras_webhooks_list_parameters.go @@ -80,6 +80,9 @@ type ExtrasWebhooksListParams struct { // CaFilePath. CaFilePath *string + // CaFilePathEmpty. + CaFilePathEmpty *string + // CaFilePathIc. CaFilePathIc *string @@ -161,6 +164,9 @@ type ExtrasWebhooksListParams struct { // HTTPContentType. HTTPContentType *string + // HTTPContentTypeEmpty. + HTTPContentTypeEmpty *string + // HTTPContentTypeIc. HTTPContentTypeIc *string @@ -221,6 +227,9 @@ type ExtrasWebhooksListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -263,6 +272,9 @@ type ExtrasWebhooksListParams struct { // PayloadURL. PayloadURL *string + // PayloadURLEmpty. + PayloadURLEmpty *string + // PayloadURLIc. PayloadURLIc *string @@ -296,6 +308,9 @@ type ExtrasWebhooksListParams struct { // Secret. Secret *string + // SecretEmpty. + SecretEmpty *string + // SecretIc. SecretIc *string @@ -399,6 +414,17 @@ func (o *ExtrasWebhooksListParams) SetCaFilePath(caFilePath *string) { o.CaFilePath = caFilePath } +// WithCaFilePathEmpty adds the caFilePathEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithCaFilePathEmpty(caFilePathEmpty *string) *ExtrasWebhooksListParams { + o.SetCaFilePathEmpty(caFilePathEmpty) + return o +} + +// SetCaFilePathEmpty adds the caFilePathEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetCaFilePathEmpty(caFilePathEmpty *string) { + o.CaFilePathEmpty = caFilePathEmpty +} + // WithCaFilePathIc adds the caFilePathIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithCaFilePathIc(caFilePathIc *string) *ExtrasWebhooksListParams { o.SetCaFilePathIc(caFilePathIc) @@ -696,6 +722,17 @@ func (o *ExtrasWebhooksListParams) SetHTTPContentType(hTTPContentType *string) { o.HTTPContentType = hTTPContentType } +// WithHTTPContentTypeEmpty adds the hTTPContentTypeEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithHTTPContentTypeEmpty(hTTPContentTypeEmpty *string) *ExtrasWebhooksListParams { + o.SetHTTPContentTypeEmpty(hTTPContentTypeEmpty) + return o +} + +// SetHTTPContentTypeEmpty adds the httpContentTypeEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetHTTPContentTypeEmpty(hTTPContentTypeEmpty *string) { + o.HTTPContentTypeEmpty = hTTPContentTypeEmpty +} + // WithHTTPContentTypeIc adds the hTTPContentTypeIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithHTTPContentTypeIc(hTTPContentTypeIc *string) *ExtrasWebhooksListParams { o.SetHTTPContentTypeIc(hTTPContentTypeIc) @@ -905,6 +942,17 @@ func (o *ExtrasWebhooksListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithNameEmpty(nameEmpty *string) *ExtrasWebhooksListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithNameIc(nameIc *string) *ExtrasWebhooksListParams { o.SetNameIc(nameIc) @@ -1037,6 +1085,17 @@ func (o *ExtrasWebhooksListParams) SetPayloadURL(payloadURL *string) { o.PayloadURL = payloadURL } +// WithPayloadURLEmpty adds the payloadURLEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithPayloadURLEmpty(payloadURLEmpty *string) *ExtrasWebhooksListParams { + o.SetPayloadURLEmpty(payloadURLEmpty) + return o +} + +// SetPayloadURLEmpty adds the payloadUrlEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetPayloadURLEmpty(payloadURLEmpty *string) { + o.PayloadURLEmpty = payloadURLEmpty +} + // WithPayloadURLIc adds the payloadURLIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithPayloadURLIc(payloadURLIc *string) *ExtrasWebhooksListParams { o.SetPayloadURLIc(payloadURLIc) @@ -1158,6 +1217,17 @@ func (o *ExtrasWebhooksListParams) SetSecret(secret *string) { o.Secret = secret } +// WithSecretEmpty adds the secretEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithSecretEmpty(secretEmpty *string) *ExtrasWebhooksListParams { + o.SetSecretEmpty(secretEmpty) + return o +} + +// SetSecretEmpty adds the secretEmpty to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetSecretEmpty(secretEmpty *string) { + o.SecretEmpty = secretEmpty +} + // WithSecretIc adds the secretIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithSecretIc(secretIc *string) *ExtrasWebhooksListParams { o.SetSecretIc(secretIc) @@ -1326,6 +1396,23 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.CaFilePathEmpty != nil { + + // query param ca_file_path__empty + var qrCaFilePathEmpty string + + if o.CaFilePathEmpty != nil { + qrCaFilePathEmpty = *o.CaFilePathEmpty + } + qCaFilePathEmpty := qrCaFilePathEmpty + if qCaFilePathEmpty != "" { + + if err := r.SetQueryParam("ca_file_path__empty", qCaFilePathEmpty); err != nil { + return err + } + } + } + if o.CaFilePathIc != nil { // query param ca_file_path__ic @@ -1785,6 +1872,23 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.HTTPContentTypeEmpty != nil { + + // query param http_content_type__empty + var qrHTTPContentTypeEmpty string + + if o.HTTPContentTypeEmpty != nil { + qrHTTPContentTypeEmpty = *o.HTTPContentTypeEmpty + } + qHTTPContentTypeEmpty := qrHTTPContentTypeEmpty + if qHTTPContentTypeEmpty != "" { + + if err := r.SetQueryParam("http_content_type__empty", qHTTPContentTypeEmpty); err != nil { + return err + } + } + } + if o.HTTPContentTypeIc != nil { // query param http_content_type__ic @@ -2108,6 +2212,23 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2312,6 +2433,23 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.PayloadURLEmpty != nil { + + // query param payload_url__empty + var qrPayloadURLEmpty string + + if o.PayloadURLEmpty != nil { + qrPayloadURLEmpty = *o.PayloadURLEmpty + } + qPayloadURLEmpty := qrPayloadURLEmpty + if qPayloadURLEmpty != "" { + + if err := r.SetQueryParam("payload_url__empty", qPayloadURLEmpty); err != nil { + return err + } + } + } + if o.PayloadURLIc != nil { // query param payload_url__ic @@ -2499,6 +2637,23 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.SecretEmpty != nil { + + // query param secret__empty + var qrSecretEmpty string + + if o.SecretEmpty != nil { + qrSecretEmpty = *o.SecretEmpty + } + qSecretEmpty := qrSecretEmpty + if qSecretEmpty != "" { + + if err := r.SetQueryParam("secret__empty", qSecretEmpty); err != nil { + return err + } + } + } + if o.SecretIc != nil { // query param secret__ic diff --git a/netbox/client/ipam/ipam_aggregates_list_parameters.go b/netbox/client/ipam/ipam_aggregates_list_parameters.go index baf8ec73..8712ae03 100644 --- a/netbox/client/ipam/ipam_aggregates_list_parameters.go +++ b/netbox/client/ipam/ipam_aggregates_list_parameters.go @@ -116,6 +116,9 @@ type IpamAggregatesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -444,6 +447,17 @@ func (o *IpamAggregatesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamAggregatesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam aggregates list params func (o *IpamAggregatesListParams) WithDescriptionIc(descriptionIc *string) *IpamAggregatesListParams { o.SetDescriptionIc(descriptionIc) @@ -1124,6 +1138,23 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic diff --git a/netbox/client/ipam/ipam_asns_list_parameters.go b/netbox/client/ipam/ipam_asns_list_parameters.go index 5f1f659d..e9030fae 100644 --- a/netbox/client/ipam/ipam_asns_list_parameters.go +++ b/netbox/client/ipam/ipam_asns_list_parameters.go @@ -116,6 +116,9 @@ type IpamAsnsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -450,6 +453,17 @@ func (o *IpamAsnsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam asns list params +func (o *IpamAsnsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamAsnsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam asns list params +func (o *IpamAsnsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam asns list params func (o *IpamAsnsListParams) WithDescriptionIc(descriptionIc *string) *IpamAsnsListParams { o.SetDescriptionIc(descriptionIc) @@ -1152,6 +1166,23 @@ func (o *IpamAsnsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic diff --git a/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go b/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go index 0e1c2351..ba8e1239 100644 --- a/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go +++ b/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go @@ -80,6 +80,9 @@ type IpamFhrpGroupsListParams struct { // AuthKey. AuthKey *string + // AuthKeyEmpty. + AuthKeyEmpty *string + // AuthKeyIc. AuthKeyIc *string @@ -191,6 +194,39 @@ type IpamFhrpGroupsListParams struct { */ Limit *int64 + // Name. + Name *string + + // NameEmpty. + NameEmpty *string + + // NameIc. + NameIc *string + + // NameIe. + NameIe *string + + // NameIew. + NameIew *string + + // NameIsw. + NameIsw *string + + // Namen. + Namen *string + + // NameNic. + NameNic *string + + // NameNie. + NameNie *string + + // NameNiew. + NameNiew *string + + // NameNisw. + NameNisw *string + /* Offset. The initial index from which to return the results. @@ -285,6 +321,17 @@ func (o *IpamFhrpGroupsListParams) SetAuthKey(authKey *string) { o.AuthKey = authKey } +// WithAuthKeyEmpty adds the authKeyEmpty to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithAuthKeyEmpty(authKeyEmpty *string) *IpamFhrpGroupsListParams { + o.SetAuthKeyEmpty(authKeyEmpty) + return o +} + +// SetAuthKeyEmpty adds the authKeyEmpty to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetAuthKeyEmpty(authKeyEmpty *string) { + o.AuthKeyEmpty = authKeyEmpty +} + // WithAuthKeyIc adds the authKeyIc to the ipam fhrp groups list params func (o *IpamFhrpGroupsListParams) WithAuthKeyIc(authKeyIc *string) *IpamFhrpGroupsListParams { o.SetAuthKeyIc(authKeyIc) @@ -681,6 +728,127 @@ func (o *IpamFhrpGroupsListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithName adds the name to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithName(name *string) *IpamFhrpGroupsListParams { + o.SetName(name) + return o +} + +// SetName adds the name to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetName(name *string) { + o.Name = name +} + +// WithNameEmpty adds the nameEmpty to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameEmpty(nameEmpty *string) *IpamFhrpGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + +// WithNameIc adds the nameIc to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameIc(nameIc *string) *IpamFhrpGroupsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameIe(nameIe *string) *IpamFhrpGroupsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameIew(nameIew *string) *IpamFhrpGroupsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameIsw(nameIsw *string) *IpamFhrpGroupsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNamen(namen *string) *IpamFhrpGroupsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameNic(nameNic *string) *IpamFhrpGroupsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameNie(nameNie *string) *IpamFhrpGroupsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameNiew(nameNiew *string) *IpamFhrpGroupsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) WithNameNisw(nameNisw *string) *IpamFhrpGroupsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam fhrp groups list params +func (o *IpamFhrpGroupsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam fhrp groups list params func (o *IpamFhrpGroupsListParams) WithOffset(offset *int64) *IpamFhrpGroupsListParams { o.SetOffset(offset) @@ -794,6 +962,23 @@ func (o *IpamFhrpGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.AuthKeyEmpty != nil { + + // query param auth_key__empty + var qrAuthKeyEmpty string + + if o.AuthKeyEmpty != nil { + qrAuthKeyEmpty = *o.AuthKeyEmpty + } + qAuthKeyEmpty := qrAuthKeyEmpty + if qAuthKeyEmpty != "" { + + if err := r.SetQueryParam("auth_key__empty", qAuthKeyEmpty); err != nil { + return err + } + } + } + if o.AuthKeyIc != nil { // query param auth_key__ic @@ -1406,6 +1591,193 @@ func (o *IpamFhrpGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { + return err + } + } + } + + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + } + if o.Offset != nil { // query param offset diff --git a/netbox/client/ipam/ipam_ip_addresses_list_parameters.go b/netbox/client/ipam/ipam_ip_addresses_list_parameters.go index 439f731d..8857df4c 100644 --- a/netbox/client/ipam/ipam_ip_addresses_list_parameters.go +++ b/netbox/client/ipam/ipam_ip_addresses_list_parameters.go @@ -104,6 +104,9 @@ type IpamIPAddressesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -140,6 +143,9 @@ type IpamIPAddressesListParams struct { // DNSName. DNSName *string + // DNSNameEmpty. + DNSNameEmpty *string + // DNSNameIc. DNSNameIc *string @@ -481,6 +487,17 @@ func (o *IpamIPAddressesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamIPAddressesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithDescriptionIc(descriptionIc *string) *IpamIPAddressesListParams { o.SetDescriptionIc(descriptionIc) @@ -613,6 +630,17 @@ func (o *IpamIPAddressesListParams) SetDNSName(dNSName *string) { o.DNSName = dNSName } +// WithDNSNameEmpty adds the dNSNameEmpty to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameEmpty(dNSNameEmpty *string) *IpamIPAddressesListParams { + o.SetDNSNameEmpty(dNSNameEmpty) + return o +} + +// SetDNSNameEmpty adds the dnsNameEmpty to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameEmpty(dNSNameEmpty *string) { + o.DNSNameEmpty = dNSNameEmpty +} + // WithDNSNameIc adds the dNSNameIc to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithDNSNameIc(dNSNameIc *string) *IpamIPAddressesListParams { o.SetDNSNameIc(dNSNameIc) @@ -1434,6 +1462,23 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1638,6 +1683,23 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DNSNameEmpty != nil { + + // query param dns_name__empty + var qrDNSNameEmpty string + + if o.DNSNameEmpty != nil { + qrDNSNameEmpty = *o.DNSNameEmpty + } + qDNSNameEmpty := qrDNSNameEmpty + if qDNSNameEmpty != "" { + + if err := r.SetQueryParam("dns_name__empty", qDNSNameEmpty); err != nil { + return err + } + } + } + if o.DNSNameIc != nil { // query param dns_name__ic diff --git a/netbox/client/ipam/ipam_ip_ranges_list_parameters.go b/netbox/client/ipam/ipam_ip_ranges_list_parameters.go index 5a016d83..62d2f3a6 100644 --- a/netbox/client/ipam/ipam_ip_ranges_list_parameters.go +++ b/netbox/client/ipam/ipam_ip_ranges_list_parameters.go @@ -101,6 +101,9 @@ type IpamIPRangesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -128,6 +131,9 @@ type IpamIPRangesListParams struct { // DescriptionNisw. DescriptionNisw *string + // EndAddress. + EndAddress *string + // Family. Family *float64 @@ -200,6 +206,9 @@ type IpamIPRangesListParams struct { // RoleIDn. RoleIDn *string + // StartAddress. + StartAddress *string + // Status. Status *string @@ -389,6 +398,17 @@ func (o *IpamIPRangesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam ip ranges list params +func (o *IpamIPRangesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamIPRangesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam ip ranges list params +func (o *IpamIPRangesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam ip ranges list params func (o *IpamIPRangesListParams) WithDescriptionIc(descriptionIc *string) *IpamIPRangesListParams { o.SetDescriptionIc(descriptionIc) @@ -488,6 +508,17 @@ func (o *IpamIPRangesListParams) SetDescriptionNisw(descriptionNisw *string) { o.DescriptionNisw = descriptionNisw } +// WithEndAddress adds the endAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) WithEndAddress(endAddress *string) *IpamIPRangesListParams { + o.SetEndAddress(endAddress) + return o +} + +// SetEndAddress adds the endAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) SetEndAddress(endAddress *string) { + o.EndAddress = endAddress +} + // WithFamily adds the family to the ipam ip ranges list params func (o *IpamIPRangesListParams) WithFamily(family *float64) *IpamIPRangesListParams { o.SetFamily(family) @@ -719,6 +750,17 @@ func (o *IpamIPRangesListParams) SetRoleIDn(roleIDn *string) { o.RoleIDn = roleIDn } +// WithStartAddress adds the startAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) WithStartAddress(startAddress *string) *IpamIPRangesListParams { + o.SetStartAddress(startAddress) + return o +} + +// SetStartAddress adds the startAddress to the ipam ip ranges list params +func (o *IpamIPRangesListParams) SetStartAddress(startAddress *string) { + o.StartAddress = startAddress +} + // WithStatus adds the status to the ipam ip ranges list params func (o *IpamIPRangesListParams) WithStatus(status *string) *IpamIPRangesListParams { o.SetStatus(status) @@ -1039,6 +1081,23 @@ func (o *IpamIPRangesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1192,6 +1251,23 @@ func (o *IpamIPRangesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.EndAddress != nil { + + // query param end_address + var qrEndAddress string + + if o.EndAddress != nil { + qrEndAddress = *o.EndAddress + } + qEndAddress := qrEndAddress + if qEndAddress != "" { + + if err := r.SetQueryParam("end_address", qEndAddress); err != nil { + return err + } + } + } + if o.Family != nil { // query param family @@ -1549,6 +1625,23 @@ func (o *IpamIPRangesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.StartAddress != nil { + + // query param start_address + var qrStartAddress string + + if o.StartAddress != nil { + qrStartAddress = *o.StartAddress + } + qStartAddress := qrStartAddress + if qStartAddress != "" { + + if err := r.SetQueryParam("start_address", qStartAddress); err != nil { + return err + } + } + } + if o.Status != nil { // query param status diff --git a/netbox/client/ipam/ipam_l2vpns_list_parameters.go b/netbox/client/ipam/ipam_l2vpns_list_parameters.go index ff3f543f..f7280176 100644 --- a/netbox/client/ipam/ipam_l2vpns_list_parameters.go +++ b/netbox/client/ipam/ipam_l2vpns_list_parameters.go @@ -98,6 +98,9 @@ type IpamL2vpnsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -212,6 +215,9 @@ type IpamL2vpnsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -257,6 +263,9 @@ type IpamL2vpnsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -450,6 +459,17 @@ func (o *IpamL2vpnsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam l2vpns list params +func (o *IpamL2vpnsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamL2vpnsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam l2vpns list params +func (o *IpamL2vpnsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam l2vpns list params func (o *IpamL2vpnsListParams) WithDescriptionIc(descriptionIc *string) *IpamL2vpnsListParams { o.SetDescriptionIc(descriptionIc) @@ -857,6 +877,17 @@ func (o *IpamL2vpnsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam l2vpns list params +func (o *IpamL2vpnsListParams) WithNameEmpty(nameEmpty *string) *IpamL2vpnsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam l2vpns list params +func (o *IpamL2vpnsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam l2vpns list params func (o *IpamL2vpnsListParams) WithNameIc(nameIc *string) *IpamL2vpnsListParams { o.SetNameIc(nameIc) @@ -1000,6 +1031,17 @@ func (o *IpamL2vpnsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the ipam l2vpns list params +func (o *IpamL2vpnsListParams) WithSlugEmpty(slugEmpty *string) *IpamL2vpnsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the ipam l2vpns list params +func (o *IpamL2vpnsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the ipam l2vpns list params func (o *IpamL2vpnsListParams) WithSlugIc(slugIc *string) *IpamL2vpnsListParams { o.SetSlugIc(slugIc) @@ -1358,6 +1400,23 @@ func (o *IpamL2vpnsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1987,6 +2046,23 @@ func (o *IpamL2vpnsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2208,6 +2284,23 @@ func (o *IpamL2vpnsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/ipam/ipam_prefixes_list_parameters.go b/netbox/client/ipam/ipam_prefixes_list_parameters.go index c7b5fedd..4226f774 100644 --- a/netbox/client/ipam/ipam_prefixes_list_parameters.go +++ b/netbox/client/ipam/ipam_prefixes_list_parameters.go @@ -137,6 +137,9 @@ type IpamPrefixesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -647,6 +650,17 @@ func (o *IpamPrefixesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamPrefixesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam prefixes list params func (o *IpamPrefixesListParams) WithDescriptionIc(descriptionIc *string) *IpamPrefixesListParams { o.SetDescriptionIc(descriptionIc) @@ -1831,6 +1845,23 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic diff --git a/netbox/client/ipam/ipam_rirs_list_parameters.go b/netbox/client/ipam/ipam_rirs_list_parameters.go index 13f9d2ad..4a0e57d2 100644 --- a/netbox/client/ipam/ipam_rirs_list_parameters.go +++ b/netbox/client/ipam/ipam_rirs_list_parameters.go @@ -98,6 +98,9 @@ type IpamRirsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -173,6 +176,9 @@ type IpamRirsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -218,6 +224,9 @@ type IpamRirsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -381,6 +390,17 @@ func (o *IpamRirsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamRirsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam rirs list params func (o *IpamRirsListParams) WithDescriptionIc(descriptionIc *string) *IpamRirsListParams { o.SetDescriptionIc(descriptionIc) @@ -645,6 +665,17 @@ func (o *IpamRirsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam rirs list params +func (o *IpamRirsListParams) WithNameEmpty(nameEmpty *string) *IpamRirsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam rirs list params +func (o *IpamRirsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam rirs list params func (o *IpamRirsListParams) WithNameIc(nameIc *string) *IpamRirsListParams { o.SetNameIc(nameIc) @@ -788,6 +819,17 @@ func (o *IpamRirsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugEmpty(slugEmpty *string) *IpamRirsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the ipam rirs list params func (o *IpamRirsListParams) WithSlugIc(slugIc *string) *IpamRirsListParams { o.SetSlugIc(slugIc) @@ -1036,6 +1078,23 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1444,6 +1503,23 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1665,6 +1741,23 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/ipam/ipam_roles_list_parameters.go b/netbox/client/ipam/ipam_roles_list_parameters.go index ff947a42..7eb41774 100644 --- a/netbox/client/ipam/ipam_roles_list_parameters.go +++ b/netbox/client/ipam/ipam_roles_list_parameters.go @@ -98,6 +98,9 @@ type IpamRolesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type IpamRolesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -215,6 +221,9 @@ type IpamRolesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -378,6 +387,17 @@ func (o *IpamRolesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam roles list params +func (o *IpamRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamRolesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam roles list params +func (o *IpamRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam roles list params func (o *IpamRolesListParams) WithDescriptionIc(descriptionIc *string) *IpamRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -631,6 +651,17 @@ func (o *IpamRolesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam roles list params +func (o *IpamRolesListParams) WithNameEmpty(nameEmpty *string) *IpamRolesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam roles list params +func (o *IpamRolesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam roles list params func (o *IpamRolesListParams) WithNameIc(nameIc *string) *IpamRolesListParams { o.SetNameIc(nameIc) @@ -774,6 +805,17 @@ func (o *IpamRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the ipam roles list params +func (o *IpamRolesListParams) WithSlugEmpty(slugEmpty *string) *IpamRolesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the ipam roles list params +func (o *IpamRolesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the ipam roles list params func (o *IpamRolesListParams) WithSlugIc(slugIc *string) *IpamRolesListParams { o.SetSlugIc(slugIc) @@ -1022,6 +1064,23 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1413,6 +1472,23 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1634,6 +1710,23 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/ipam/ipam_route_targets_list_parameters.go b/netbox/client/ipam/ipam_route_targets_list_parameters.go index f9a1e41e..cbf3c058 100644 --- a/netbox/client/ipam/ipam_route_targets_list_parameters.go +++ b/netbox/client/ipam/ipam_route_targets_list_parameters.go @@ -98,6 +98,9 @@ type IpamRouteTargetsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -194,6 +197,9 @@ type IpamRouteTargetsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -396,6 +402,17 @@ func (o *IpamRouteTargetsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam route targets list params +func (o *IpamRouteTargetsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamRouteTargetsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam route targets list params +func (o *IpamRouteTargetsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam route targets list params func (o *IpamRouteTargetsListParams) WithDescriptionIc(descriptionIc *string) *IpamRouteTargetsListParams { o.SetDescriptionIc(descriptionIc) @@ -737,6 +754,17 @@ func (o *IpamRouteTargetsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam route targets list params +func (o *IpamRouteTargetsListParams) WithNameEmpty(nameEmpty *string) *IpamRouteTargetsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam route targets list params +func (o *IpamRouteTargetsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam route targets list params func (o *IpamRouteTargetsListParams) WithNameIc(nameIc *string) *IpamRouteTargetsListParams { o.SetNameIc(nameIc) @@ -1106,6 +1134,23 @@ func (o *IpamRouteTargetsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1633,6 +1678,23 @@ func (o *IpamRouteTargetsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/ipam/ipam_service_templates_list_parameters.go b/netbox/client/ipam/ipam_service_templates_list_parameters.go index 3e8ca8a1..cd4de6b8 100644 --- a/netbox/client/ipam/ipam_service_templates_list_parameters.go +++ b/netbox/client/ipam/ipam_service_templates_list_parameters.go @@ -140,6 +140,9 @@ type IpamServiceTemplatesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -470,6 +473,17 @@ func (o *IpamServiceTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam service templates list params +func (o *IpamServiceTemplatesListParams) WithNameEmpty(nameEmpty *string) *IpamServiceTemplatesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam service templates list params +func (o *IpamServiceTemplatesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam service templates list params func (o *IpamServiceTemplatesListParams) WithNameIc(nameIc *string) *IpamServiceTemplatesListParams { o.SetNameIc(nameIc) @@ -1005,6 +1019,23 @@ func (o *IpamServiceTemplatesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/ipam/ipam_services_list_parameters.go b/netbox/client/ipam/ipam_services_list_parameters.go index 94670956..59c8b65d 100644 --- a/netbox/client/ipam/ipam_services_list_parameters.go +++ b/netbox/client/ipam/ipam_services_list_parameters.go @@ -98,6 +98,9 @@ type IpamServicesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -155,6 +158,18 @@ type IpamServicesListParams struct { // IDn. IDn *string + // Ipaddress. + Ipaddress *string + + // Ipaddressn. + Ipaddressn *string + + // IpaddressID. + IpaddressID *string + + // IpaddressIDn. + IpaddressIDn *string + // LastUpdated. LastUpdated *string @@ -182,6 +197,9 @@ type IpamServicesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -381,6 +399,17 @@ func (o *IpamServicesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam services list params +func (o *IpamServicesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamServicesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam services list params +func (o *IpamServicesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam services list params func (o *IpamServicesListParams) WithDescriptionIc(descriptionIc *string) *IpamServicesListParams { o.SetDescriptionIc(descriptionIc) @@ -590,6 +619,50 @@ func (o *IpamServicesListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithIpaddress adds the ipaddress to the ipam services list params +func (o *IpamServicesListParams) WithIpaddress(ipaddress *string) *IpamServicesListParams { + o.SetIpaddress(ipaddress) + return o +} + +// SetIpaddress adds the ipaddress to the ipam services list params +func (o *IpamServicesListParams) SetIpaddress(ipaddress *string) { + o.Ipaddress = ipaddress +} + +// WithIpaddressn adds the ipaddressn to the ipam services list params +func (o *IpamServicesListParams) WithIpaddressn(ipaddressn *string) *IpamServicesListParams { + o.SetIpaddressn(ipaddressn) + return o +} + +// SetIpaddressn adds the ipaddressN to the ipam services list params +func (o *IpamServicesListParams) SetIpaddressn(ipaddressn *string) { + o.Ipaddressn = ipaddressn +} + +// WithIpaddressID adds the ipaddressID to the ipam services list params +func (o *IpamServicesListParams) WithIpaddressID(ipaddressID *string) *IpamServicesListParams { + o.SetIpaddressID(ipaddressID) + return o +} + +// SetIpaddressID adds the ipaddressId to the ipam services list params +func (o *IpamServicesListParams) SetIpaddressID(ipaddressID *string) { + o.IpaddressID = ipaddressID +} + +// WithIpaddressIDn adds the ipaddressIDn to the ipam services list params +func (o *IpamServicesListParams) WithIpaddressIDn(ipaddressIDn *string) *IpamServicesListParams { + o.SetIpaddressIDn(ipaddressIDn) + return o +} + +// SetIpaddressIDn adds the ipaddressIdN to the ipam services list params +func (o *IpamServicesListParams) SetIpaddressIDn(ipaddressIDn *string) { + o.IpaddressIDn = ipaddressIDn +} + // WithLastUpdated adds the lastUpdated to the ipam services list params func (o *IpamServicesListParams) WithLastUpdated(lastUpdated *string) *IpamServicesListParams { o.SetLastUpdated(lastUpdated) @@ -678,6 +751,17 @@ func (o *IpamServicesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam services list params +func (o *IpamServicesListParams) WithNameEmpty(nameEmpty *string) *IpamServicesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam services list params +func (o *IpamServicesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam services list params func (o *IpamServicesListParams) WithNameIc(nameIc *string) *IpamServicesListParams { o.SetNameIc(nameIc) @@ -1036,6 +1120,23 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1359,6 +1460,74 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.Ipaddress != nil { + + // query param ipaddress + var qrIpaddress string + + if o.Ipaddress != nil { + qrIpaddress = *o.Ipaddress + } + qIpaddress := qrIpaddress + if qIpaddress != "" { + + if err := r.SetQueryParam("ipaddress", qIpaddress); err != nil { + return err + } + } + } + + if o.Ipaddressn != nil { + + // query param ipaddress__n + var qrIpaddressn string + + if o.Ipaddressn != nil { + qrIpaddressn = *o.Ipaddressn + } + qIpaddressn := qrIpaddressn + if qIpaddressn != "" { + + if err := r.SetQueryParam("ipaddress__n", qIpaddressn); err != nil { + return err + } + } + } + + if o.IpaddressID != nil { + + // query param ipaddress_id + var qrIpaddressID string + + if o.IpaddressID != nil { + qrIpaddressID = *o.IpaddressID + } + qIpaddressID := qrIpaddressID + if qIpaddressID != "" { + + if err := r.SetQueryParam("ipaddress_id", qIpaddressID); err != nil { + return err + } + } + } + + if o.IpaddressIDn != nil { + + // query param ipaddress_id__n + var qrIpaddressIDn string + + if o.IpaddressIDn != nil { + qrIpaddressIDn = *o.IpaddressIDn + } + qIpaddressIDn := qrIpaddressIDn + if qIpaddressIDn != "" { + + if err := r.SetQueryParam("ipaddress_id__n", qIpaddressIDn); err != nil { + return err + } + } + } + if o.LastUpdated != nil { // query param last_updated @@ -1495,6 +1664,23 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/ipam/ipam_vlan_groups_list_parameters.go b/netbox/client/ipam/ipam_vlan_groups_list_parameters.go index 888ad29b..0cc7cb6d 100644 --- a/netbox/client/ipam/ipam_vlan_groups_list_parameters.go +++ b/netbox/client/ipam/ipam_vlan_groups_list_parameters.go @@ -104,6 +104,9 @@ type IpamVlanGroupsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -215,6 +218,9 @@ type IpamVlanGroupsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -296,6 +302,9 @@ type IpamVlanGroupsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -481,6 +490,17 @@ func (o *IpamVlanGroupsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamVlanGroupsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithDescriptionIc(descriptionIc *string) *IpamVlanGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -877,6 +897,17 @@ func (o *IpamVlanGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameEmpty(nameEmpty *string) *IpamVlanGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithNameIc(nameIc *string) *IpamVlanGroupsListParams { o.SetNameIc(nameIc) @@ -1152,6 +1183,17 @@ func (o *IpamVlanGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugEmpty(slugEmpty *string) *IpamVlanGroupsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithSlugIc(slugIc *string) *IpamVlanGroupsListParams { o.SetSlugIc(slugIc) @@ -1434,6 +1476,23 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2046,6 +2105,23 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2471,6 +2547,23 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/ipam/ipam_vlans_list_parameters.go b/netbox/client/ipam/ipam_vlans_list_parameters.go index f52d783a..398946fd 100644 --- a/netbox/client/ipam/ipam_vlans_list_parameters.go +++ b/netbox/client/ipam/ipam_vlans_list_parameters.go @@ -104,6 +104,9 @@ type IpamVlansListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -161,6 +164,18 @@ type IpamVlansListParams struct { // IDn. IDn *string + // L2vpn. + L2vpn *string + + // L2vpnn. + L2vpnn *string + + // L2vpnID. + L2vpnID *string + + // L2vpnIDn. + L2vpnIDn *string + // LastUpdated. LastUpdated *string @@ -188,6 +203,9 @@ type IpamVlansListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -484,6 +502,17 @@ func (o *IpamVlansListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam vlans list params +func (o *IpamVlansListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamVlansListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam vlans list params +func (o *IpamVlansListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam vlans list params func (o *IpamVlansListParams) WithDescriptionIc(descriptionIc *string) *IpamVlansListParams { o.SetDescriptionIc(descriptionIc) @@ -693,6 +722,50 @@ func (o *IpamVlansListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithL2vpn adds the l2vpn to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpn(l2vpn *string) *IpamVlansListParams { + o.SetL2vpn(l2vpn) + return o +} + +// SetL2vpn adds the l2vpn to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpn(l2vpn *string) { + o.L2vpn = l2vpn +} + +// WithL2vpnn adds the l2vpnn to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpnn(l2vpnn *string) *IpamVlansListParams { + o.SetL2vpnn(l2vpnn) + return o +} + +// SetL2vpnn adds the l2vpnN to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpnn(l2vpnn *string) { + o.L2vpnn = l2vpnn +} + +// WithL2vpnID adds the l2vpnID to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpnID(l2vpnID *string) *IpamVlansListParams { + o.SetL2vpnID(l2vpnID) + return o +} + +// SetL2vpnID adds the l2vpnId to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpnID(l2vpnID *string) { + o.L2vpnID = l2vpnID +} + +// WithL2vpnIDn adds the l2vpnIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithL2vpnIDn(l2vpnIDn *string) *IpamVlansListParams { + o.SetL2vpnIDn(l2vpnIDn) + return o +} + +// SetL2vpnIDn adds the l2vpnIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetL2vpnIDn(l2vpnIDn *string) { + o.L2vpnIDn = l2vpnIDn +} + // WithLastUpdated adds the lastUpdated to the ipam vlans list params func (o *IpamVlansListParams) WithLastUpdated(lastUpdated *string) *IpamVlansListParams { o.SetLastUpdated(lastUpdated) @@ -781,6 +854,17 @@ func (o *IpamVlansListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam vlans list params +func (o *IpamVlansListParams) WithNameEmpty(nameEmpty *string) *IpamVlansListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam vlans list params +func (o *IpamVlansListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam vlans list params func (o *IpamVlansListParams) WithNameIc(nameIc *string) *IpamVlansListParams { o.SetNameIc(nameIc) @@ -1448,6 +1532,23 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1771,6 +1872,74 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.L2vpn != nil { + + // query param l2vpn + var qrL2vpn string + + if o.L2vpn != nil { + qrL2vpn = *o.L2vpn + } + qL2vpn := qrL2vpn + if qL2vpn != "" { + + if err := r.SetQueryParam("l2vpn", qL2vpn); err != nil { + return err + } + } + } + + if o.L2vpnn != nil { + + // query param l2vpn__n + var qrL2vpnn string + + if o.L2vpnn != nil { + qrL2vpnn = *o.L2vpnn + } + qL2vpnn := qrL2vpnn + if qL2vpnn != "" { + + if err := r.SetQueryParam("l2vpn__n", qL2vpnn); err != nil { + return err + } + } + } + + if o.L2vpnID != nil { + + // query param l2vpn_id + var qrL2vpnID string + + if o.L2vpnID != nil { + qrL2vpnID = *o.L2vpnID + } + qL2vpnID := qrL2vpnID + if qL2vpnID != "" { + + if err := r.SetQueryParam("l2vpn_id", qL2vpnID); err != nil { + return err + } + } + } + + if o.L2vpnIDn != nil { + + // query param l2vpn_id__n + var qrL2vpnIDn string + + if o.L2vpnIDn != nil { + qrL2vpnIDn = *o.L2vpnIDn + } + qL2vpnIDn := qrL2vpnIDn + if qL2vpnIDn != "" { + + if err := r.SetQueryParam("l2vpn_id__n", qL2vpnIDn); err != nil { + return err + } + } + } + if o.LastUpdated != nil { // query param last_updated @@ -1907,6 +2076,23 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/ipam/ipam_vrfs_list_parameters.go b/netbox/client/ipam/ipam_vrfs_list_parameters.go index db2d063e..9705fd36 100644 --- a/netbox/client/ipam/ipam_vrfs_list_parameters.go +++ b/netbox/client/ipam/ipam_vrfs_list_parameters.go @@ -98,6 +98,9 @@ type IpamVrfsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -197,6 +200,9 @@ type IpamVrfsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -242,6 +248,9 @@ type IpamVrfsListParams struct { // Rd. Rd *string + // RdEmpty. + RdEmpty *string + // RdIc. RdIc *string @@ -429,6 +438,17 @@ func (o *IpamVrfsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the ipam vrfs list params +func (o *IpamVrfsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamVrfsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the ipam vrfs list params +func (o *IpamVrfsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the ipam vrfs list params func (o *IpamVrfsListParams) WithDescriptionIc(descriptionIc *string) *IpamVrfsListParams { o.SetDescriptionIc(descriptionIc) @@ -781,6 +801,17 @@ func (o *IpamVrfsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameEmpty(nameEmpty *string) *IpamVrfsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the ipam vrfs list params func (o *IpamVrfsListParams) WithNameIc(nameIc *string) *IpamVrfsListParams { o.SetNameIc(nameIc) @@ -924,6 +955,17 @@ func (o *IpamVrfsListParams) SetRd(rd *string) { o.Rd = rd } +// WithRdEmpty adds the rdEmpty to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdEmpty(rdEmpty *string) *IpamVrfsListParams { + o.SetRdEmpty(rdEmpty) + return o +} + +// SetRdEmpty adds the rdEmpty to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdEmpty(rdEmpty *string) { + o.RdEmpty = rdEmpty +} + // WithRdIc adds the rdIc to the ipam vrfs list params func (o *IpamVrfsListParams) WithRdIc(rdIc *string) *IpamVrfsListParams { o.SetRdIc(rdIc) @@ -1260,6 +1302,23 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1804,6 +1863,23 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2025,6 +2101,23 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.RdEmpty != nil { + + // query param rd__empty + var qrRdEmpty string + + if o.RdEmpty != nil { + qrRdEmpty = *o.RdEmpty + } + qRdEmpty := qrRdEmpty + if qRdEmpty != "" { + + if err := r.SetQueryParam("rd__empty", qRdEmpty); err != nil { + return err + } + } + } + if o.RdIc != nil { // query param rd__ic diff --git a/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go b/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go index 9e223933..ff0b5df1 100644 --- a/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go +++ b/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go @@ -98,6 +98,9 @@ type TenancyContactGroupsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type TenancyContactGroupsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -227,6 +233,9 @@ type TenancyContactGroupsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -390,6 +399,17 @@ func (o *TenancyContactGroupsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the tenancy contact groups list params +func (o *TenancyContactGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyContactGroupsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the tenancy contact groups list params +func (o *TenancyContactGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the tenancy contact groups list params func (o *TenancyContactGroupsListParams) WithDescriptionIc(descriptionIc *string) *TenancyContactGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -643,6 +663,17 @@ func (o *TenancyContactGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the tenancy contact groups list params +func (o *TenancyContactGroupsListParams) WithNameEmpty(nameEmpty *string) *TenancyContactGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the tenancy contact groups list params +func (o *TenancyContactGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the tenancy contact groups list params func (o *TenancyContactGroupsListParams) WithNameIc(nameIc *string) *TenancyContactGroupsListParams { o.SetNameIc(nameIc) @@ -830,6 +861,17 @@ func (o *TenancyContactGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the tenancy contact groups list params +func (o *TenancyContactGroupsListParams) WithSlugEmpty(slugEmpty *string) *TenancyContactGroupsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the tenancy contact groups list params +func (o *TenancyContactGroupsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the tenancy contact groups list params func (o *TenancyContactGroupsListParams) WithSlugIc(slugIc *string) *TenancyContactGroupsListParams { o.SetSlugIc(slugIc) @@ -1078,6 +1120,23 @@ func (o *TenancyContactGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1469,6 +1528,23 @@ func (o *TenancyContactGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1758,6 +1834,23 @@ func (o *TenancyContactGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go b/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go index 82d6c946..49737012 100644 --- a/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go +++ b/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go @@ -98,6 +98,9 @@ type TenancyContactRolesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type TenancyContactRolesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -215,6 +221,9 @@ type TenancyContactRolesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -378,6 +387,17 @@ func (o *TenancyContactRolesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the tenancy contact roles list params +func (o *TenancyContactRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyContactRolesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the tenancy contact roles list params +func (o *TenancyContactRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the tenancy contact roles list params func (o *TenancyContactRolesListParams) WithDescriptionIc(descriptionIc *string) *TenancyContactRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -631,6 +651,17 @@ func (o *TenancyContactRolesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the tenancy contact roles list params +func (o *TenancyContactRolesListParams) WithNameEmpty(nameEmpty *string) *TenancyContactRolesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the tenancy contact roles list params +func (o *TenancyContactRolesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the tenancy contact roles list params func (o *TenancyContactRolesListParams) WithNameIc(nameIc *string) *TenancyContactRolesListParams { o.SetNameIc(nameIc) @@ -774,6 +805,17 @@ func (o *TenancyContactRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the tenancy contact roles list params +func (o *TenancyContactRolesListParams) WithSlugEmpty(slugEmpty *string) *TenancyContactRolesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the tenancy contact roles list params +func (o *TenancyContactRolesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the tenancy contact roles list params func (o *TenancyContactRolesListParams) WithSlugIc(slugIc *string) *TenancyContactRolesListParams { o.SetSlugIc(slugIc) @@ -1022,6 +1064,23 @@ func (o *TenancyContactRolesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1413,6 +1472,23 @@ func (o *TenancyContactRolesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1634,6 +1710,23 @@ func (o *TenancyContactRolesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/tenancy/tenancy_contacts_list_parameters.go b/netbox/client/tenancy/tenancy_contacts_list_parameters.go index febfc995..c30635c2 100644 --- a/netbox/client/tenancy/tenancy_contacts_list_parameters.go +++ b/netbox/client/tenancy/tenancy_contacts_list_parameters.go @@ -80,6 +80,9 @@ type TenancyContactsListParams struct { // Address. Address *string + // AddressEmpty. + AddressEmpty *string + // AddressIc. AddressIc *string @@ -128,6 +131,9 @@ type TenancyContactsListParams struct { // Email. Email *string + // EmailEmpty. + EmailEmpty *string + // EmailIc. EmailIc *string @@ -212,6 +218,9 @@ type TenancyContactsListParams struct { // Link. Link *string + // LinkEmpty. + LinkEmpty *string + // LinkIc. LinkIc *string @@ -242,6 +251,9 @@ type TenancyContactsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -284,6 +296,9 @@ type TenancyContactsListParams struct { // Phone. Phone *string + // PhoneEmpty. + PhoneEmpty *string + // PhoneIc. PhoneIc *string @@ -323,6 +338,9 @@ type TenancyContactsListParams struct { // Title. Title *string + // TitleEmpty. + TitleEmpty *string + // TitleIc. TitleIc *string @@ -414,6 +432,17 @@ func (o *TenancyContactsListParams) SetAddress(address *string) { o.Address = address } +// WithAddressEmpty adds the addressEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) WithAddressEmpty(addressEmpty *string) *TenancyContactsListParams { + o.SetAddressEmpty(addressEmpty) + return o +} + +// SetAddressEmpty adds the addressEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) SetAddressEmpty(addressEmpty *string) { + o.AddressEmpty = addressEmpty +} + // WithAddressIc adds the addressIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithAddressIc(addressIc *string) *TenancyContactsListParams { o.SetAddressIc(addressIc) @@ -590,6 +619,17 @@ func (o *TenancyContactsListParams) SetEmail(email *string) { o.Email = email } +// WithEmailEmpty adds the emailEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) WithEmailEmpty(emailEmpty *string) *TenancyContactsListParams { + o.SetEmailEmpty(emailEmpty) + return o +} + +// SetEmailEmpty adds the emailEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) SetEmailEmpty(emailEmpty *string) { + o.EmailEmpty = emailEmpty +} + // WithEmailIc adds the emailIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithEmailIc(emailIc *string) *TenancyContactsListParams { o.SetEmailIc(emailIc) @@ -887,6 +927,17 @@ func (o *TenancyContactsListParams) SetLink(link *string) { o.Link = link } +// WithLinkEmpty adds the linkEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkEmpty(linkEmpty *string) *TenancyContactsListParams { + o.SetLinkEmpty(linkEmpty) + return o +} + +// SetLinkEmpty adds the linkEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkEmpty(linkEmpty *string) { + o.LinkEmpty = linkEmpty +} + // WithLinkIc adds the linkIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithLinkIc(linkIc *string) *TenancyContactsListParams { o.SetLinkIc(linkIc) @@ -997,6 +1048,17 @@ func (o *TenancyContactsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) WithNameEmpty(nameEmpty *string) *TenancyContactsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithNameIc(nameIc *string) *TenancyContactsListParams { o.SetNameIc(nameIc) @@ -1129,6 +1191,17 @@ func (o *TenancyContactsListParams) SetPhone(phone *string) { o.Phone = phone } +// WithPhoneEmpty adds the phoneEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) WithPhoneEmpty(phoneEmpty *string) *TenancyContactsListParams { + o.SetPhoneEmpty(phoneEmpty) + return o +} + +// SetPhoneEmpty adds the phoneEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) SetPhoneEmpty(phoneEmpty *string) { + o.PhoneEmpty = phoneEmpty +} + // WithPhoneIc adds the phoneIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithPhoneIc(phoneIc *string) *TenancyContactsListParams { o.SetPhoneIc(phoneIc) @@ -1272,6 +1345,17 @@ func (o *TenancyContactsListParams) SetTitle(title *string) { o.Title = title } +// WithTitleEmpty adds the titleEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) WithTitleEmpty(titleEmpty *string) *TenancyContactsListParams { + o.SetTitleEmpty(titleEmpty) + return o +} + +// SetTitleEmpty adds the titleEmpty to the tenancy contacts list params +func (o *TenancyContactsListParams) SetTitleEmpty(titleEmpty *string) { + o.TitleEmpty = titleEmpty +} + // WithTitleIc adds the titleIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithTitleIc(titleIc *string) *TenancyContactsListParams { o.SetTitleIc(titleIc) @@ -1396,6 +1480,23 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.AddressEmpty != nil { + + // query param address__empty + var qrAddressEmpty string + + if o.AddressEmpty != nil { + qrAddressEmpty = *o.AddressEmpty + } + qAddressEmpty := qrAddressEmpty + if qAddressEmpty != "" { + + if err := r.SetQueryParam("address__empty", qAddressEmpty); err != nil { + return err + } + } + } + if o.AddressIc != nil { // query param address__ic @@ -1668,6 +1769,23 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.EmailEmpty != nil { + + // query param email__empty + var qrEmailEmpty string + + if o.EmailEmpty != nil { + qrEmailEmpty = *o.EmailEmpty + } + qEmailEmpty := qrEmailEmpty + if qEmailEmpty != "" { + + if err := r.SetQueryParam("email__empty", qEmailEmpty); err != nil { + return err + } + } + } + if o.EmailIc != nil { // query param email__ic @@ -2127,6 +2245,23 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.LinkEmpty != nil { + + // query param link__empty + var qrLinkEmpty string + + if o.LinkEmpty != nil { + qrLinkEmpty = *o.LinkEmpty + } + qLinkEmpty := qrLinkEmpty + if qLinkEmpty != "" { + + if err := r.SetQueryParam("link__empty", qLinkEmpty); err != nil { + return err + } + } + } + if o.LinkIc != nil { // query param link__ic @@ -2297,6 +2432,23 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2501,6 +2653,23 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.PhoneEmpty != nil { + + // query param phone__empty + var qrPhoneEmpty string + + if o.PhoneEmpty != nil { + qrPhoneEmpty = *o.PhoneEmpty + } + qPhoneEmpty := qrPhoneEmpty + if qPhoneEmpty != "" { + + if err := r.SetQueryParam("phone__empty", qPhoneEmpty); err != nil { + return err + } + } + } + if o.PhoneIc != nil { // query param phone__ic @@ -2722,6 +2891,23 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.TitleEmpty != nil { + + // query param title__empty + var qrTitleEmpty string + + if o.TitleEmpty != nil { + qrTitleEmpty = *o.TitleEmpty + } + qTitleEmpty := qrTitleEmpty + if qTitleEmpty != "" { + + if err := r.SetQueryParam("title__empty", qTitleEmpty); err != nil { + return err + } + } + } + if o.TitleIc != nil { // query param title__ic diff --git a/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go b/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go index d7be94cf..d168ff58 100644 --- a/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go +++ b/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go @@ -98,6 +98,9 @@ type TenancyTenantGroupsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type TenancyTenantGroupsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -227,6 +233,9 @@ type TenancyTenantGroupsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -390,6 +399,17 @@ func (o *TenancyTenantGroupsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyTenantGroupsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithDescriptionIc(descriptionIc *string) *TenancyTenantGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -643,6 +663,17 @@ func (o *TenancyTenantGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameEmpty(nameEmpty *string) *TenancyTenantGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithNameIc(nameIc *string) *TenancyTenantGroupsListParams { o.SetNameIc(nameIc) @@ -830,6 +861,17 @@ func (o *TenancyTenantGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugEmpty(slugEmpty *string) *TenancyTenantGroupsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithSlugIc(slugIc *string) *TenancyTenantGroupsListParams { o.SetSlugIc(slugIc) @@ -1078,6 +1120,23 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1469,6 +1528,23 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1758,6 +1834,23 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/tenancy/tenancy_tenants_list_parameters.go b/netbox/client/tenancy/tenancy_tenants_list_parameters.go index d5e3ec4c..601477e9 100644 --- a/netbox/client/tenancy/tenancy_tenants_list_parameters.go +++ b/netbox/client/tenancy/tenancy_tenants_list_parameters.go @@ -116,6 +116,9 @@ type TenancyTenantsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -200,6 +203,9 @@ type TenancyTenantsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -245,6 +251,9 @@ type TenancyTenantsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -474,6 +483,17 @@ func (o *TenancyTenantsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyTenantsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the tenancy tenants list params func (o *TenancyTenantsListParams) WithDescriptionIc(descriptionIc *string) *TenancyTenantsListParams { o.SetDescriptionIc(descriptionIc) @@ -771,6 +791,17 @@ func (o *TenancyTenantsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameEmpty(nameEmpty *string) *TenancyTenantsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the tenancy tenants list params func (o *TenancyTenantsListParams) WithNameIc(nameIc *string) *TenancyTenantsListParams { o.SetNameIc(nameIc) @@ -914,6 +945,17 @@ func (o *TenancyTenantsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugEmpty(slugEmpty *string) *TenancyTenantsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the tenancy tenants list params func (o *TenancyTenantsListParams) WithSlugIc(slugIc *string) *TenancyTenantsListParams { o.SetSlugIc(slugIc) @@ -1264,6 +1306,23 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1723,6 +1782,23 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1944,6 +2020,23 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go b/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go index 81595121..d9c9b968 100644 --- a/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go +++ b/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go @@ -116,6 +116,9 @@ type VirtualizationClusterGroupsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -188,6 +191,9 @@ type VirtualizationClusterGroupsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -233,6 +239,9 @@ type VirtualizationClusterGroupsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -462,6 +471,17 @@ func (o *VirtualizationClusterGroupsListParams) SetDescription(description *stri o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationClusterGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -715,6 +735,17 @@ func (o *VirtualizationClusterGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClusterGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithNameIc(nameIc *string) *VirtualizationClusterGroupsListParams { o.SetNameIc(nameIc) @@ -858,6 +889,17 @@ func (o *VirtualizationClusterGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugEmpty(slugEmpty *string) *VirtualizationClusterGroupsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithSlugIc(slugIc *string) *VirtualizationClusterGroupsListParams { o.SetSlugIc(slugIc) @@ -1208,6 +1250,23 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1599,6 +1658,23 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1820,6 +1896,23 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go b/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go index cabd6e09..3375eddc 100644 --- a/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go +++ b/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go @@ -98,6 +98,9 @@ type VirtualizationClusterTypesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type VirtualizationClusterTypesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -215,6 +221,9 @@ type VirtualizationClusterTypesListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -378,6 +387,17 @@ func (o *VirtualizationClusterTypesListParams) SetDescription(description *strin o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionEmpty(descriptionEmpty *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationClusterTypesListParams { o.SetDescriptionIc(descriptionIc) @@ -631,6 +651,17 @@ func (o *VirtualizationClusterTypesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClusterTypesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithNameIc(nameIc *string) *VirtualizationClusterTypesListParams { o.SetNameIc(nameIc) @@ -774,6 +805,17 @@ func (o *VirtualizationClusterTypesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugEmpty(slugEmpty *string) *VirtualizationClusterTypesListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithSlugIc(slugIc *string) *VirtualizationClusterTypesListParams { o.SetSlugIc(slugIc) @@ -1022,6 +1064,23 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1413,6 +1472,23 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1634,6 +1710,23 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/virtualization/virtualization_clusters_list_parameters.go b/netbox/client/virtualization/virtualization_clusters_list_parameters.go index 1ccd4800..72c3b640 100644 --- a/netbox/client/virtualization/virtualization_clusters_list_parameters.go +++ b/netbox/client/virtualization/virtualization_clusters_list_parameters.go @@ -170,6 +170,9 @@ type VirtualizationClustersListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -679,6 +682,17 @@ func (o *VirtualizationClustersListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClustersListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithNameIc(nameIc *string) *VirtualizationClustersListParams { o.SetNameIc(nameIc) @@ -1637,6 +1651,23 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/virtualization/virtualization_interfaces_list_parameters.go b/netbox/client/virtualization/virtualization_interfaces_list_parameters.go index d164bed1..dc866da1 100644 --- a/netbox/client/virtualization/virtualization_interfaces_list_parameters.go +++ b/netbox/client/virtualization/virtualization_interfaces_list_parameters.go @@ -116,6 +116,9 @@ type VirtualizationInterfacesListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -164,6 +167,18 @@ type VirtualizationInterfacesListParams struct { // IDn. IDn *string + // L2vpn. + L2vpn *string + + // L2vpnn. + L2vpnn *string + + // L2vpnID. + L2vpnID *string + + // L2vpnIDn. + L2vpnIDn *string + // LastUpdated. LastUpdated *string @@ -239,6 +254,9 @@ type VirtualizationInterfacesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -305,6 +323,12 @@ type VirtualizationInterfacesListParams struct { // VirtualMachineIDn. VirtualMachineIDn *string + // Vlan. + Vlan *string + + // VlanID. + VlanID *string + // Vrf. Vrf *string @@ -513,6 +537,17 @@ func (o *VirtualizationInterfacesListParams) SetDescription(description *string) o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithDescriptionEmpty(descriptionEmpty *string) *VirtualizationInterfacesListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationInterfacesListParams { o.SetDescriptionIc(descriptionIc) @@ -689,6 +724,50 @@ func (o *VirtualizationInterfacesListParams) SetIDn(iDn *string) { o.IDn = iDn } +// WithL2vpn adds the l2vpn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpn(l2vpn *string) *VirtualizationInterfacesListParams { + o.SetL2vpn(l2vpn) + return o +} + +// SetL2vpn adds the l2vpn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpn(l2vpn *string) { + o.L2vpn = l2vpn +} + +// WithL2vpnn adds the l2vpnn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpnn(l2vpnn *string) *VirtualizationInterfacesListParams { + o.SetL2vpnn(l2vpnn) + return o +} + +// SetL2vpnn adds the l2vpnN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpnn(l2vpnn *string) { + o.L2vpnn = l2vpnn +} + +// WithL2vpnID adds the l2vpnID to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpnID(l2vpnID *string) *VirtualizationInterfacesListParams { + o.SetL2vpnID(l2vpnID) + return o +} + +// SetL2vpnID adds the l2vpnId to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpnID(l2vpnID *string) { + o.L2vpnID = l2vpnID +} + +// WithL2vpnIDn adds the l2vpnIDn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithL2vpnIDn(l2vpnIDn *string) *VirtualizationInterfacesListParams { + o.SetL2vpnIDn(l2vpnIDn) + return o +} + +// SetL2vpnIDn adds the l2vpnIdN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetL2vpnIDn(l2vpnIDn *string) { + o.L2vpnIDn = l2vpnIDn +} + // WithLastUpdated adds the lastUpdated to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithLastUpdated(lastUpdated *string) *VirtualizationInterfacesListParams { o.SetLastUpdated(lastUpdated) @@ -953,6 +1032,17 @@ func (o *VirtualizationInterfacesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationInterfacesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithNameIc(nameIc *string) *VirtualizationInterfacesListParams { o.SetNameIc(nameIc) @@ -1173,6 +1263,28 @@ func (o *VirtualizationInterfacesListParams) SetVirtualMachineIDn(virtualMachine o.VirtualMachineIDn = virtualMachineIDn } +// WithVlan adds the vlan to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVlan(vlan *string) *VirtualizationInterfacesListParams { + o.SetVlan(vlan) + return o +} + +// SetVlan adds the vlan to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVlan(vlan *string) { + o.Vlan = vlan +} + +// WithVlanID adds the vlanID to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVlanID(vlanID *string) *VirtualizationInterfacesListParams { + o.SetVlanID(vlanID) + return o +} + +// SetVlanID adds the vlanId to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVlanID(vlanID *string) { + o.VlanID = vlanID +} + // WithVrf adds the vrf to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithVrf(vrf *string) *VirtualizationInterfacesListParams { o.SetVrf(vrf) @@ -1446,6 +1558,23 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1718,6 +1847,74 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.L2vpn != nil { + + // query param l2vpn + var qrL2vpn string + + if o.L2vpn != nil { + qrL2vpn = *o.L2vpn + } + qL2vpn := qrL2vpn + if qL2vpn != "" { + + if err := r.SetQueryParam("l2vpn", qL2vpn); err != nil { + return err + } + } + } + + if o.L2vpnn != nil { + + // query param l2vpn__n + var qrL2vpnn string + + if o.L2vpnn != nil { + qrL2vpnn = *o.L2vpnn + } + qL2vpnn := qrL2vpnn + if qL2vpnn != "" { + + if err := r.SetQueryParam("l2vpn__n", qL2vpnn); err != nil { + return err + } + } + } + + if o.L2vpnID != nil { + + // query param l2vpn_id + var qrL2vpnID string + + if o.L2vpnID != nil { + qrL2vpnID = *o.L2vpnID + } + qL2vpnID := qrL2vpnID + if qL2vpnID != "" { + + if err := r.SetQueryParam("l2vpn_id", qL2vpnID); err != nil { + return err + } + } + } + + if o.L2vpnIDn != nil { + + // query param l2vpn_id__n + var qrL2vpnIDn string + + if o.L2vpnIDn != nil { + qrL2vpnIDn = *o.L2vpnIDn + } + qL2vpnIDn := qrL2vpnIDn + if qL2vpnIDn != "" { + + if err := r.SetQueryParam("l2vpn_id__n", qL2vpnIDn); err != nil { + return err + } + } + } + if o.LastUpdated != nil { // query param last_updated @@ -2126,6 +2323,23 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -2466,6 +2680,40 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.Vlan != nil { + + // query param vlan + var qrVlan string + + if o.Vlan != nil { + qrVlan = *o.Vlan + } + qVlan := qrVlan + if qVlan != "" { + + if err := r.SetQueryParam("vlan", qVlan); err != nil { + return err + } + } + } + + if o.VlanID != nil { + + // query param vlan_id + var qrVlanID string + + if o.VlanID != nil { + qrVlanID = *o.VlanID + } + qVlanID := qrVlanID + if qVlanID != "" { + + if err := r.SetQueryParam("vlan_id", qVlanID); err != nil { + return err + } + } + } + if o.Vrf != nil { // query param vrf diff --git a/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go b/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go index 8b048827..45e5decf 100644 --- a/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go +++ b/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go @@ -278,6 +278,9 @@ type VirtualizationVirtualMachinesListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -1213,6 +1216,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationVirtualMachinesListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithNameIc(nameIc *string) *VirtualizationVirtualMachinesListParams { o.SetNameIc(nameIc) @@ -2893,6 +2907,23 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic diff --git a/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go b/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go index 6cf5dfe1..6439cc78 100644 --- a/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go +++ b/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go @@ -98,6 +98,9 @@ type WirelessWirelessLanGroupsListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -170,6 +173,9 @@ type WirelessWirelessLanGroupsListParams struct { // Name. Name *string + // NameEmpty. + NameEmpty *string + // NameIc. NameIc *string @@ -227,6 +233,9 @@ type WirelessWirelessLanGroupsListParams struct { // Slug. Slug *string + // SlugEmpty. + SlugEmpty *string + // SlugIc. SlugIc *string @@ -390,6 +399,17 @@ func (o *WirelessWirelessLanGroupsListParams) SetDescription(description *string o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the wireless wireless lan groups list params +func (o *WirelessWirelessLanGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *WirelessWirelessLanGroupsListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the wireless wireless lan groups list params +func (o *WirelessWirelessLanGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the wireless wireless lan groups list params func (o *WirelessWirelessLanGroupsListParams) WithDescriptionIc(descriptionIc *string) *WirelessWirelessLanGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -643,6 +663,17 @@ func (o *WirelessWirelessLanGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameEmpty adds the nameEmpty to the wireless wireless lan groups list params +func (o *WirelessWirelessLanGroupsListParams) WithNameEmpty(nameEmpty *string) *WirelessWirelessLanGroupsListParams { + o.SetNameEmpty(nameEmpty) + return o +} + +// SetNameEmpty adds the nameEmpty to the wireless wireless lan groups list params +func (o *WirelessWirelessLanGroupsListParams) SetNameEmpty(nameEmpty *string) { + o.NameEmpty = nameEmpty +} + // WithNameIc adds the nameIc to the wireless wireless lan groups list params func (o *WirelessWirelessLanGroupsListParams) WithNameIc(nameIc *string) *WirelessWirelessLanGroupsListParams { o.SetNameIc(nameIc) @@ -830,6 +861,17 @@ func (o *WirelessWirelessLanGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugEmpty adds the slugEmpty to the wireless wireless lan groups list params +func (o *WirelessWirelessLanGroupsListParams) WithSlugEmpty(slugEmpty *string) *WirelessWirelessLanGroupsListParams { + o.SetSlugEmpty(slugEmpty) + return o +} + +// SetSlugEmpty adds the slugEmpty to the wireless wireless lan groups list params +func (o *WirelessWirelessLanGroupsListParams) SetSlugEmpty(slugEmpty *string) { + o.SlugEmpty = slugEmpty +} + // WithSlugIc adds the slugIc to the wireless wireless lan groups list params func (o *WirelessWirelessLanGroupsListParams) WithSlugIc(slugIc *string) *WirelessWirelessLanGroupsListParams { o.SetSlugIc(slugIc) @@ -1078,6 +1120,23 @@ func (o *WirelessWirelessLanGroupsListParams) WriteToRequest(r runtime.ClientReq } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -1469,6 +1528,23 @@ func (o *WirelessWirelessLanGroupsListParams) WriteToRequest(r runtime.ClientReq } } + if o.NameEmpty != nil { + + // query param name__empty + var qrNameEmpty string + + if o.NameEmpty != nil { + qrNameEmpty = *o.NameEmpty + } + qNameEmpty := qrNameEmpty + if qNameEmpty != "" { + + if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + return err + } + } + } + if o.NameIc != nil { // query param name__ic @@ -1758,6 +1834,23 @@ func (o *WirelessWirelessLanGroupsListParams) WriteToRequest(r runtime.ClientReq } } + if o.SlugEmpty != nil { + + // query param slug__empty + var qrSlugEmpty string + + if o.SlugEmpty != nil { + qrSlugEmpty = *o.SlugEmpty + } + qSlugEmpty := qrSlugEmpty + if qSlugEmpty != "" { + + if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { + return err + } + } + } + if o.SlugIc != nil { // query param slug__ic diff --git a/netbox/client/wireless/wireless_wireless_lans_list_parameters.go b/netbox/client/wireless/wireless_wireless_lans_list_parameters.go index 77eade91..da86b18b 100644 --- a/netbox/client/wireless/wireless_wireless_lans_list_parameters.go +++ b/netbox/client/wireless/wireless_wireless_lans_list_parameters.go @@ -86,6 +86,9 @@ type WirelessWirelessLansListParams struct { // AuthPsk. AuthPsk *string + // AuthPskEmpty. + AuthPskEmpty *string + // AuthPskIc. AuthPskIc *string @@ -140,6 +143,9 @@ type WirelessWirelessLansListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -239,6 +245,9 @@ type WirelessWirelessLansListParams struct { // Ssid. Ssid *string + // SsidEmpty. + SsidEmpty *string + // SsidIc. SsidIc *string @@ -266,6 +275,12 @@ type WirelessWirelessLansListParams struct { // SsidNisw. SsidNisw *string + // Status. + Status *string + + // Statusn. + Statusn *string + // Tag. Tag *string @@ -388,6 +403,17 @@ func (o *WirelessWirelessLansListParams) SetAuthPsk(authPsk *string) { o.AuthPsk = authPsk } +// WithAuthPskEmpty adds the authPskEmpty to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) WithAuthPskEmpty(authPskEmpty *string) *WirelessWirelessLansListParams { + o.SetAuthPskEmpty(authPskEmpty) + return o +} + +// SetAuthPskEmpty adds the authPskEmpty to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) SetAuthPskEmpty(authPskEmpty *string) { + o.AuthPskEmpty = authPskEmpty +} + // WithAuthPskIc adds the authPskIc to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithAuthPskIc(authPskIc *string) *WirelessWirelessLansListParams { o.SetAuthPskIc(authPskIc) @@ -586,6 +612,17 @@ func (o *WirelessWirelessLansListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) WithDescriptionEmpty(descriptionEmpty *string) *WirelessWirelessLansListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithDescriptionIc(descriptionIc *string) *WirelessWirelessLansListParams { o.SetDescriptionIc(descriptionIc) @@ -916,6 +953,17 @@ func (o *WirelessWirelessLansListParams) SetSsid(ssid *string) { o.Ssid = ssid } +// WithSsidEmpty adds the ssidEmpty to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) WithSsidEmpty(ssidEmpty *string) *WirelessWirelessLansListParams { + o.SetSsidEmpty(ssidEmpty) + return o +} + +// SetSsidEmpty adds the ssidEmpty to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) SetSsidEmpty(ssidEmpty *string) { + o.SsidEmpty = ssidEmpty +} + // WithSsidIc adds the ssidIc to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithSsidIc(ssidIc *string) *WirelessWirelessLansListParams { o.SetSsidIc(ssidIc) @@ -1015,6 +1063,28 @@ func (o *WirelessWirelessLansListParams) SetSsidNisw(ssidNisw *string) { o.SsidNisw = ssidNisw } +// WithStatus adds the status to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) WithStatus(status *string) *WirelessWirelessLansListParams { + o.SetStatus(status) + return o +} + +// SetStatus adds the status to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) SetStatus(status *string) { + o.Status = status +} + +// WithStatusn adds the statusn to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) WithStatusn(statusn *string) *WirelessWirelessLansListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the wireless wireless lans list params +func (o *WirelessWirelessLansListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithTag(tag *string) *WirelessWirelessLansListParams { o.SetTag(tag) @@ -1206,6 +1276,23 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.AuthPskEmpty != nil { + + // query param auth_psk__empty + var qrAuthPskEmpty string + + if o.AuthPskEmpty != nil { + qrAuthPskEmpty = *o.AuthPskEmpty + } + qAuthPskEmpty := qrAuthPskEmpty + if qAuthPskEmpty != "" { + + if err := r.SetQueryParam("auth_psk__empty", qAuthPskEmpty); err != nil { + return err + } + } + } + if o.AuthPskIc != nil { // query param auth_psk__ic @@ -1512,6 +1599,23 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2022,6 +2126,23 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.SsidEmpty != nil { + + // query param ssid__empty + var qrSsidEmpty string + + if o.SsidEmpty != nil { + qrSsidEmpty = *o.SsidEmpty + } + qSsidEmpty := qrSsidEmpty + if qSsidEmpty != "" { + + if err := r.SetQueryParam("ssid__empty", qSsidEmpty); err != nil { + return err + } + } + } + if o.SsidIc != nil { // query param ssid__ic @@ -2175,6 +2296,40 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.Status != nil { + + // query param status + var qrStatus string + + if o.Status != nil { + qrStatus = *o.Status + } + qStatus := qrStatus + if qStatus != "" { + + if err := r.SetQueryParam("status", qStatus); err != nil { + return err + } + } + } + + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + } + if o.Tag != nil { // query param tag diff --git a/netbox/client/wireless/wireless_wireless_links_list_parameters.go b/netbox/client/wireless/wireless_wireless_links_list_parameters.go index 083523d0..56619c19 100644 --- a/netbox/client/wireless/wireless_wireless_links_list_parameters.go +++ b/netbox/client/wireless/wireless_wireless_links_list_parameters.go @@ -86,6 +86,9 @@ type WirelessWirelessLinksListParams struct { // AuthPsk. AuthPsk *string + // AuthPskEmpty. + AuthPskEmpty *string + // AuthPskIc. AuthPskIc *string @@ -140,6 +143,9 @@ type WirelessWirelessLinksListParams struct { // Description. Description *string + // DescriptionEmpty. + DescriptionEmpty *string + // DescriptionIc. DescriptionIc *string @@ -263,6 +269,9 @@ type WirelessWirelessLinksListParams struct { // Ssid. Ssid *string + // SsidEmpty. + SsidEmpty *string + // SsidIc. SsidIc *string @@ -412,6 +421,17 @@ func (o *WirelessWirelessLinksListParams) SetAuthPsk(authPsk *string) { o.AuthPsk = authPsk } +// WithAuthPskEmpty adds the authPskEmpty to the wireless wireless links list params +func (o *WirelessWirelessLinksListParams) WithAuthPskEmpty(authPskEmpty *string) *WirelessWirelessLinksListParams { + o.SetAuthPskEmpty(authPskEmpty) + return o +} + +// SetAuthPskEmpty adds the authPskEmpty to the wireless wireless links list params +func (o *WirelessWirelessLinksListParams) SetAuthPskEmpty(authPskEmpty *string) { + o.AuthPskEmpty = authPskEmpty +} + // WithAuthPskIc adds the authPskIc to the wireless wireless links list params func (o *WirelessWirelessLinksListParams) WithAuthPskIc(authPskIc *string) *WirelessWirelessLinksListParams { o.SetAuthPskIc(authPskIc) @@ -610,6 +630,17 @@ func (o *WirelessWirelessLinksListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionEmpty adds the descriptionEmpty to the wireless wireless links list params +func (o *WirelessWirelessLinksListParams) WithDescriptionEmpty(descriptionEmpty *string) *WirelessWirelessLinksListParams { + o.SetDescriptionEmpty(descriptionEmpty) + return o +} + +// SetDescriptionEmpty adds the descriptionEmpty to the wireless wireless links list params +func (o *WirelessWirelessLinksListParams) SetDescriptionEmpty(descriptionEmpty *string) { + o.DescriptionEmpty = descriptionEmpty +} + // WithDescriptionIc adds the descriptionIc to the wireless wireless links list params func (o *WirelessWirelessLinksListParams) WithDescriptionIc(descriptionIc *string) *WirelessWirelessLinksListParams { o.SetDescriptionIc(descriptionIc) @@ -1028,6 +1059,17 @@ func (o *WirelessWirelessLinksListParams) SetSsid(ssid *string) { o.Ssid = ssid } +// WithSsidEmpty adds the ssidEmpty to the wireless wireless links list params +func (o *WirelessWirelessLinksListParams) WithSsidEmpty(ssidEmpty *string) *WirelessWirelessLinksListParams { + o.SetSsidEmpty(ssidEmpty) + return o +} + +// SetSsidEmpty adds the ssidEmpty to the wireless wireless links list params +func (o *WirelessWirelessLinksListParams) SetSsidEmpty(ssidEmpty *string) { + o.SsidEmpty = ssidEmpty +} + // WithSsidIc adds the ssidIc to the wireless wireless links list params func (o *WirelessWirelessLinksListParams) WithSsidIc(ssidIc *string) *WirelessWirelessLinksListParams { o.SetSsidIc(ssidIc) @@ -1318,6 +1360,23 @@ func (o *WirelessWirelessLinksListParams) WriteToRequest(r runtime.ClientRequest } } + if o.AuthPskEmpty != nil { + + // query param auth_psk__empty + var qrAuthPskEmpty string + + if o.AuthPskEmpty != nil { + qrAuthPskEmpty = *o.AuthPskEmpty + } + qAuthPskEmpty := qrAuthPskEmpty + if qAuthPskEmpty != "" { + + if err := r.SetQueryParam("auth_psk__empty", qAuthPskEmpty); err != nil { + return err + } + } + } + if o.AuthPskIc != nil { // query param auth_psk__ic @@ -1624,6 +1683,23 @@ func (o *WirelessWirelessLinksListParams) WriteToRequest(r runtime.ClientRequest } } + if o.DescriptionEmpty != nil { + + // query param description__empty + var qrDescriptionEmpty string + + if o.DescriptionEmpty != nil { + qrDescriptionEmpty = *o.DescriptionEmpty + } + qDescriptionEmpty := qrDescriptionEmpty + if qDescriptionEmpty != "" { + + if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { + return err + } + } + } + if o.DescriptionIc != nil { // query param description__ic @@ -2270,6 +2346,23 @@ func (o *WirelessWirelessLinksListParams) WriteToRequest(r runtime.ClientRequest } } + if o.SsidEmpty != nil { + + // query param ssid__empty + var qrSsidEmpty string + + if o.SsidEmpty != nil { + qrSsidEmpty = *o.SsidEmpty + } + qSsidEmpty := qrSsidEmpty + if qSsidEmpty != "" { + + if err := r.SetQueryParam("ssid__empty", qSsidEmpty); err != nil { + return err + } + } + } + if o.SsidIc != nil { // query param ssid__ic diff --git a/netbox/models/a_s_n.go b/netbox/models/a_s_n.go index a1a815b8..1d535833 100644 --- a/netbox/models/a_s_n.go +++ b/netbox/models/a_s_n.go @@ -43,6 +43,9 @@ type ASN struct { // Minimum: 1 Asn *int64 `json:"asn"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/aggregate.go b/netbox/models/aggregate.go index de90498d..98061dc2 100644 --- a/netbox/models/aggregate.go +++ b/netbox/models/aggregate.go @@ -36,6 +36,9 @@ import ( // swagger:model Aggregate type Aggregate struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/cable.go b/netbox/models/cable.go index 746eae03..4347443e 100644 --- a/netbox/models/cable.go +++ b/netbox/models/cable.go @@ -47,6 +47,9 @@ type Cable struct { // Pattern: ^[0-9a-f]{6}$ Color string `json:"color,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -55,6 +58,10 @@ type Cable struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -117,6 +124,10 @@ func (m *Cable) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -235,6 +246,18 @@ func (m *Cable) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Cable) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Cable) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil diff --git a/netbox/models/circuit_circuit_termination.go b/netbox/models/circuit_circuit_termination.go index a9ee73ea..b1060aa0 100644 --- a/netbox/models/circuit_circuit_termination.go +++ b/netbox/models/circuit_circuit_termination.go @@ -34,6 +34,10 @@ import ( // swagger:model CircuitCircuitTermination type CircuitCircuitTermination struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -76,6 +80,10 @@ type CircuitCircuitTermination struct { func (m *CircuitCircuitTermination) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validatePortSpeed(formats); err != nil { res = append(res, err) } @@ -106,6 +114,18 @@ func (m *CircuitCircuitTermination) Validate(formats strfmt.Registry) error { return nil } +func (m *CircuitCircuitTermination) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *CircuitCircuitTermination) validatePortSpeed(formats strfmt.Registry) error { if swag.IsZero(m.PortSpeed) { // not required return nil diff --git a/netbox/models/cluster.go b/netbox/models/cluster.go index 7e59e8aa..261c8a94 100644 --- a/netbox/models/cluster.go +++ b/netbox/models/cluster.go @@ -47,6 +47,10 @@ type Cluster struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -107,6 +111,10 @@ func (m *Cluster) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateGroup(formats); err != nil { res = append(res, err) } @@ -161,6 +169,18 @@ func (m *Cluster) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Cluster) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Cluster) validateGroup(formats strfmt.Registry) error { if swag.IsZero(m.Group) { // not required return nil diff --git a/netbox/models/contact.go b/netbox/models/contact.go index 9d11db76..2524a3a4 100644 --- a/netbox/models/contact.go +++ b/netbox/models/contact.go @@ -50,6 +50,10 @@ type Contact struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -111,6 +115,10 @@ func (m *Contact) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateEmail(formats); err != nil { res = append(res, err) } @@ -177,6 +185,18 @@ func (m *Contact) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Contact) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Contact) validateEmail(formats strfmt.Registry) error { if swag.IsZero(m.Email) { // not required return nil diff --git a/netbox/models/custom_field.go b/netbox/models/custom_field.go index 6c2b39d2..33c4875c 100644 --- a/netbox/models/custom_field.go +++ b/netbox/models/custom_field.go @@ -107,6 +107,13 @@ type CustomField struct { // If true, this field is required when creating new objects or editing an existing object. Required bool `json:"required,omitempty"` + // Search weight + // + // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. + // Maximum: 32767 + // Minimum: 0 + SearchWeight *int64 `json:"search_weight,omitempty"` + // type // Required: true Type *CustomFieldType `json:"type"` @@ -139,7 +146,7 @@ type CustomField struct { // Max Length: 500 ValidationRegex string `json:"validation_regex,omitempty"` - // Weight + // Display weight // // Fields with higher weights appear lower in a form. // Maximum: 32767 @@ -187,6 +194,10 @@ func (m *CustomField) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSearchWeight(formats); err != nil { + res = append(res, err) + } + if err := m.validateType(formats); err != nil { res = append(res, err) } @@ -354,6 +365,22 @@ func (m *CustomField) validateName(formats strfmt.Registry) error { return nil } +func (m *CustomField) validateSearchWeight(formats strfmt.Registry) error { + if swag.IsZero(m.SearchWeight) { // not required + return nil + } + + if err := validate.MinimumInt("search_weight", "body", *m.SearchWeight, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("search_weight", "body", *m.SearchWeight, 32767, false); err != nil { + return err + } + + return nil +} + func (m *CustomField) validateType(formats strfmt.Registry) error { if err := validate.Required("type", "body", m.Type); err != nil { @@ -787,12 +814,12 @@ type CustomFieldType struct { // label // Required: true - // Enum: [Text Text (long) Integer Boolean (true/false) Date URL JSON Selection Multiple selection Object Multiple objects] + // Enum: [Text Text (long) Integer Decimal Boolean (true/false) Date URL JSON Selection Multiple selection Object Multiple objects] Label *string `json:"label"` // value // Required: true - // Enum: [text longtext integer boolean date url json select multiselect object multiobject] + // Enum: [text longtext integer decimal boolean date url json select multiselect object multiobject] Value *string `json:"value"` } @@ -818,7 +845,7 @@ var customFieldTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Text","Text (long)","Integer","Boolean (true/false)","Date","URL","JSON","Selection","Multiple selection","Object","Multiple objects"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Text","Text (long)","Integer","Decimal","Boolean (true/false)","Date","URL","JSON","Selection","Multiple selection","Object","Multiple objects"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -837,6 +864,9 @@ const ( // CustomFieldTypeLabelInteger captures enum value "Integer" CustomFieldTypeLabelInteger string = "Integer" + // CustomFieldTypeLabelDecimal captures enum value "Decimal" + CustomFieldTypeLabelDecimal string = "Decimal" + // CustomFieldTypeLabelBooleanTrueFalse captures enum value "Boolean (true/false)" CustomFieldTypeLabelBooleanTrueFalse string = "Boolean (true/false)" @@ -888,7 +918,7 @@ var customFieldTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["text","longtext","integer","boolean","date","url","json","select","multiselect","object","multiobject"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["text","longtext","integer","decimal","boolean","date","url","json","select","multiselect","object","multiobject"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -907,6 +937,9 @@ const ( // CustomFieldTypeValueInteger captures enum value "integer" CustomFieldTypeValueInteger string = "integer" + // CustomFieldTypeValueDecimal captures enum value "decimal" + CustomFieldTypeValueDecimal string = "decimal" + // CustomFieldTypeValueBoolean captures enum value "boolean" CustomFieldTypeValueBoolean string = "boolean" diff --git a/netbox/models/custom_link.go b/netbox/models/custom_link.go index 75b4e4e0..39f4381c 100644 --- a/netbox/models/custom_link.go +++ b/netbox/models/custom_link.go @@ -41,9 +41,10 @@ type CustomLink struct { // Enum: [outline-dark blue indigo purple pink red orange yellow green teal cyan gray black white ghost-dark] ButtonClass string `json:"button_class,omitempty"` - // Content type + // content types // Required: true - ContentType *string `json:"content_type"` + // Unique: true + ContentTypes []string `json:"content_types"` // Created // Read Only: true @@ -116,7 +117,7 @@ func (m *CustomLink) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateContentType(formats); err != nil { + if err := m.validateContentTypes(formats); err != nil { res = append(res, err) } @@ -239,9 +240,13 @@ func (m *CustomLink) validateButtonClass(formats strfmt.Registry) error { return nil } -func (m *CustomLink) validateContentType(formats strfmt.Registry) error { +func (m *CustomLink) validateContentTypes(formats strfmt.Registry) error { - if err := validate.Required("content_type", "body", m.ContentType); err != nil { + if err := validate.Required("content_types", "body", m.ContentTypes); err != nil { + return err + } + + if err := validate.UniqueItems("content_types", "body", m.ContentTypes); err != nil { return err } diff --git a/netbox/models/device.go b/netbox/models/device.go index e30f1383..928b4f75 100644 --- a/netbox/models/device.go +++ b/netbox/models/device.go @@ -59,6 +59,10 @@ type Device struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device role // Required: true DeviceRole *NestedDeviceRole `json:"device_role"` @@ -90,9 +94,8 @@ type Device struct { Location *NestedLocation `json:"location,omitempty"` // Name - // Required: true // Max Length: 64 - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // parent device ParentDevice *NestedDevice `json:"parent_device,omitempty"` @@ -172,6 +175,10 @@ func (m *Device) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDeviceRole(formats); err != nil { res = append(res, err) } @@ -328,6 +335,18 @@ func (m *Device) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Device) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Device) validateDeviceRole(formats strfmt.Registry) error { if err := validate.Required("device_role", "body", m.DeviceRole); err != nil { @@ -419,9 +438,8 @@ func (m *Device) validateLocation(formats strfmt.Registry) error { } func (m *Device) validateName(formats strfmt.Registry) error { - - if err := validate.Required("name", "body", m.Name); err != nil { - return err + if swag.IsZero(m.Name) { // not required + return nil } if err := validate.MaxLength("name", "body", *m.Name, 64); err != nil { diff --git a/netbox/models/device_type.go b/netbox/models/device_type.go index 90440ca7..72586339 100644 --- a/netbox/models/device_type.go +++ b/netbox/models/device_type.go @@ -50,6 +50,10 @@ type DeviceType struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -119,6 +123,12 @@ type DeviceType struct { // Read Only: true // Format: uri URL strfmt.URI `json:"url,omitempty"` + + // Weight + Weight *float64 `json:"weight,omitempty"` + + // weight unit + WeightUnit *DeviceTypeWeightUnit `json:"weight_unit,omitempty"` } // Validate validates this device type @@ -133,6 +143,10 @@ func (m *DeviceType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateFrontImage(formats); err != nil { res = append(res, err) } @@ -177,6 +191,10 @@ func (m *DeviceType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateWeightUnit(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -214,6 +232,18 @@ func (m *DeviceType) validateCreated(formats strfmt.Registry) error { return nil } +func (m *DeviceType) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *DeviceType) validateFrontImage(formats strfmt.Registry) error { if swag.IsZero(m.FrontImage) { // not required return nil @@ -389,6 +419,25 @@ func (m *DeviceType) validateURL(formats strfmt.Registry) error { return nil } +func (m *DeviceType) validateWeightUnit(formats strfmt.Registry) error { + if swag.IsZero(m.WeightUnit) { // not required + return nil + } + + if m.WeightUnit != nil { + if err := m.WeightUnit.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("weight_unit") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("weight_unit") + } + return err + } + } + + return nil +} + // ContextValidate validate this device type based on the context it is used func (m *DeviceType) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error @@ -441,6 +490,10 @@ func (m *DeviceType) ContextValidate(ctx context.Context, formats strfmt.Registr res = append(res, err) } + if err := m.contextValidateWeightUnit(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -587,6 +640,22 @@ func (m *DeviceType) contextValidateURL(ctx context.Context, formats strfmt.Regi return nil } +func (m *DeviceType) contextValidateWeightUnit(ctx context.Context, formats strfmt.Registry) error { + + if m.WeightUnit != nil { + if err := m.WeightUnit.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("weight_unit") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("weight_unit") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *DeviceType) MarshalBinary() ([]byte, error) { if m == nil { @@ -920,3 +989,158 @@ func (m *DeviceTypeSubdeviceRole) UnmarshalBinary(b []byte) error { *m = res return nil } + +// DeviceTypeWeightUnit Weight unit +// +// swagger:model DeviceTypeWeightUnit +type DeviceTypeWeightUnit struct { + + // label + // Required: true + // Enum: [Kilograms Grams Pounds Ounces] + Label *string `json:"label"` + + // value + // Required: true + // Enum: [kg g lb oz] + Value *string `json:"value"` +} + +// Validate validates this device type weight unit +func (m *DeviceTypeWeightUnit) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateLabel(formats); err != nil { + res = append(res, err) + } + + if err := m.validateValue(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var deviceTypeWeightUnitTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Kilograms","Grams","Pounds","Ounces"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceTypeWeightUnitTypeLabelPropEnum = append(deviceTypeWeightUnitTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceTypeWeightUnitLabelKilograms captures enum value "Kilograms" + DeviceTypeWeightUnitLabelKilograms string = "Kilograms" + + // DeviceTypeWeightUnitLabelGrams captures enum value "Grams" + DeviceTypeWeightUnitLabelGrams string = "Grams" + + // DeviceTypeWeightUnitLabelPounds captures enum value "Pounds" + DeviceTypeWeightUnitLabelPounds string = "Pounds" + + // DeviceTypeWeightUnitLabelOunces captures enum value "Ounces" + DeviceTypeWeightUnitLabelOunces string = "Ounces" +) + +// prop value enum +func (m *DeviceTypeWeightUnit) validateLabelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, deviceTypeWeightUnitTypeLabelPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *DeviceTypeWeightUnit) validateLabel(formats strfmt.Registry) error { + + if err := validate.Required("weight_unit"+"."+"label", "body", m.Label); err != nil { + return err + } + + // value enum + if err := m.validateLabelEnum("weight_unit"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceTypeWeightUnitTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["kg","g","lb","oz"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceTypeWeightUnitTypeValuePropEnum = append(deviceTypeWeightUnitTypeValuePropEnum, v) + } +} + +const ( + + // DeviceTypeWeightUnitValueKg captures enum value "kg" + DeviceTypeWeightUnitValueKg string = "kg" + + // DeviceTypeWeightUnitValueG captures enum value "g" + DeviceTypeWeightUnitValueG string = "g" + + // DeviceTypeWeightUnitValueLb captures enum value "lb" + DeviceTypeWeightUnitValueLb string = "lb" + + // DeviceTypeWeightUnitValueOz captures enum value "oz" + DeviceTypeWeightUnitValueOz string = "oz" +) + +// prop value enum +func (m *DeviceTypeWeightUnit) validateValueEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, deviceTypeWeightUnitTypeValuePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *DeviceTypeWeightUnit) validateValue(formats strfmt.Registry) error { + + if err := validate.Required("weight_unit"+"."+"value", "body", m.Value); err != nil { + return err + } + + // value enum + if err := m.validateValueEnum("weight_unit"+"."+"value", "body", *m.Value); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this device type weight unit based on context it is used +func (m *DeviceTypeWeightUnit) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *DeviceTypeWeightUnit) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *DeviceTypeWeightUnit) UnmarshalBinary(b []byte) error { + var res DeviceTypeWeightUnit + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/device_with_config_context.go b/netbox/models/device_with_config_context.go index 3b432125..86ca24ff 100644 --- a/netbox/models/device_with_config_context.go +++ b/netbox/models/device_with_config_context.go @@ -63,6 +63,10 @@ type DeviceWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device role // Required: true DeviceRole *NestedDeviceRole `json:"device_role"` @@ -94,9 +98,8 @@ type DeviceWithConfigContext struct { Location *NestedLocation `json:"location,omitempty"` // Name - // Required: true // Max Length: 64 - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // parent device ParentDevice *NestedDevice `json:"parent_device,omitempty"` @@ -176,6 +179,10 @@ func (m *DeviceWithConfigContext) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDeviceRole(formats); err != nil { res = append(res, err) } @@ -332,6 +339,18 @@ func (m *DeviceWithConfigContext) validateCreated(formats strfmt.Registry) error return nil } +func (m *DeviceWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *DeviceWithConfigContext) validateDeviceRole(formats strfmt.Registry) error { if err := validate.Required("device_role", "body", m.DeviceRole); err != nil { @@ -423,9 +442,8 @@ func (m *DeviceWithConfigContext) validateLocation(formats strfmt.Registry) erro } func (m *DeviceWithConfigContext) validateName(formats strfmt.Registry) error { - - if err := validate.Required("name", "body", m.Name); err != nil { - return err + if swag.IsZero(m.Name) { // not required + return nil } if err := validate.MaxLength("name", "body", *m.Name, 64); err != nil { diff --git a/netbox/models/export_template.go b/netbox/models/export_template.go index 5b707696..28a295e5 100644 --- a/netbox/models/export_template.go +++ b/netbox/models/export_template.go @@ -39,9 +39,10 @@ type ExportTemplate struct { // Download file as attachment AsAttachment bool `json:"as_attachment,omitempty"` - // Content type + // content types // Required: true - ContentType *string `json:"content_type"` + // Unique: true + ContentTypes []string `json:"content_types"` // Created // Read Only: true @@ -73,7 +74,7 @@ type ExportTemplate struct { // MIME type // - // Defaults to text/plain + // Defaults to text/plain; charset=utf-8 // Max Length: 50 MimeType string `json:"mime_type,omitempty"` @@ -100,7 +101,7 @@ type ExportTemplate struct { func (m *ExportTemplate) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateContentType(formats); err != nil { + if err := m.validateContentTypes(formats); err != nil { res = append(res, err) } @@ -142,9 +143,13 @@ func (m *ExportTemplate) Validate(formats strfmt.Registry) error { return nil } -func (m *ExportTemplate) validateContentType(formats strfmt.Registry) error { +func (m *ExportTemplate) validateContentTypes(formats strfmt.Registry) error { - if err := validate.Required("content_type", "body", m.ContentType); err != nil { + if err := validate.Required("content_types", "body", m.ContentTypes); err != nil { + return err + } + + if err := validate.UniqueItems("content_types", "body", m.ContentTypes); err != nil { return err } diff --git a/netbox/models/f_h_r_p_group.go b/netbox/models/f_h_r_p_group.go index ef2d4776..7ce4965b 100644 --- a/netbox/models/f_h_r_p_group.go +++ b/netbox/models/f_h_r_p_group.go @@ -44,6 +44,9 @@ type FHRPGroup struct { // Enum: [plaintext md5] AuthType string `json:"auth_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -79,6 +82,10 @@ type FHRPGroup struct { // Format: date-time LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` + // Name + // Max Length: 100 + Name string `json:"name,omitempty"` + // Protocol // Required: true // Enum: [vrrp2 vrrp3 carp clusterxl hsrp glbp other] @@ -125,6 +132,10 @@ func (m *FHRPGroup) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + if err := m.validateProtocol(formats); err != nil { res = append(res, err) } @@ -276,6 +287,18 @@ func (m *FHRPGroup) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *FHRPGroup) validateName(formats strfmt.Registry) error { + if swag.IsZero(m.Name) { // not required + return nil + } + + if err := validate.MaxLength("name", "body", m.Name, 100); err != nil { + return err + } + + return nil +} + var fHRPGroupTypeProtocolPropEnum []interface{} func init() { diff --git a/netbox/models/front_port_rear_port.go b/netbox/models/front_port_rear_port.go index 6841d7eb..a5533e3e 100644 --- a/netbox/models/front_port_rear_port.go +++ b/netbox/models/front_port_rear_port.go @@ -34,6 +34,10 @@ import ( // swagger:model FrontPortRearPort type FrontPortRearPort struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -64,6 +68,10 @@ type FrontPortRearPort struct { func (m *FrontPortRearPort) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -82,6 +90,18 @@ func (m *FrontPortRearPort) Validate(formats strfmt.Registry) error { return nil } +func (m *FrontPortRearPort) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *FrontPortRearPort) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil diff --git a/netbox/models/interface.go b/netbox/models/interface.go index 11f7dd5b..b311cc8a 100644 --- a/netbox/models/interface.go +++ b/netbox/models/interface.go @@ -210,6 +210,10 @@ type Interface struct { // Format: uri URL strfmt.URI `json:"url,omitempty"` + // vdcs + // Unique: true + Vdcs []*NestedVirtualDeviceContext `json:"vdcs"` + // vrf Vrf *NestedVRF `json:"vrf,omitempty"` @@ -338,6 +342,10 @@ func (m *Interface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateVdcs(formats); err != nil { + res = append(res, err) + } + if err := m.validateVrf(formats); err != nil { res = append(res, err) } @@ -836,6 +844,36 @@ func (m *Interface) validateURL(formats strfmt.Registry) error { return nil } +func (m *Interface) validateVdcs(formats strfmt.Registry) error { + if swag.IsZero(m.Vdcs) { // not required + return nil + } + + if err := validate.UniqueItems("vdcs", "body", m.Vdcs); err != nil { + return err + } + + for i := 0; i < len(m.Vdcs); i++ { + if swag.IsZero(m.Vdcs[i]) { // not required + continue + } + + if m.Vdcs[i] != nil { + if err := m.Vdcs[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("vdcs" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("vdcs" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *Interface) validateVrf(formats strfmt.Registry) error { if swag.IsZero(m.Vrf) { // not required return nil @@ -1032,6 +1070,10 @@ func (m *Interface) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateVdcs(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateVrf(ctx, formats); err != nil { res = append(res, err) } @@ -1456,6 +1498,26 @@ func (m *Interface) contextValidateURL(ctx context.Context, formats strfmt.Regis return nil } +func (m *Interface) contextValidateVdcs(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Vdcs); i++ { + + if m.Vdcs[i] != nil { + if err := m.Vdcs[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("vdcs" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("vdcs" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *Interface) contextValidateVrf(ctx context.Context, formats strfmt.Registry) error { if m.Vrf != nil { @@ -3609,12 +3671,12 @@ type InterfaceType struct { // label // Required: true - // 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) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) 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) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] + // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-FX (10/100ME FIBER) 100BASE-LFX (10/100ME FIBER) 100BASE-TX (10/100ME) 100BASE-T1 (10/100ME Single Pair) 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) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) QSFP-DD (800GE) OSFP (800GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) 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) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Cisco StackWise-1T Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true - // 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 50gbase-x-sfp56 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 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 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 50gbase-x-sfp56 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 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 cisco-stackwise-1t juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -3640,7 +3702,7 @@ var interfaceTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["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)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","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)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-FX (10/100ME FIBER)","100BASE-LFX (10/100ME FIBER)","100BASE-TX (10/100ME)","100BASE-T1 (10/100ME Single Pair)","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)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","QSFP-DD (800GE)","OSFP (800GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","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)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Cisco StackWise-1T","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -3659,9 +3721,18 @@ const ( // InterfaceTypeLabelLinkAggregationGroupLAG captures enum value "Link Aggregation Group (LAG)" InterfaceTypeLabelLinkAggregationGroupLAG string = "Link Aggregation Group (LAG)" + // InterfaceTypeLabelNr100BASEDashFX10100MEFIBER captures enum value "100BASE-FX (10/100ME FIBER)" + InterfaceTypeLabelNr100BASEDashFX10100MEFIBER string = "100BASE-FX (10/100ME FIBER)" + + // InterfaceTypeLabelNr100BASEDashLFX10100MEFIBER captures enum value "100BASE-LFX (10/100ME FIBER)" + InterfaceTypeLabelNr100BASEDashLFX10100MEFIBER string = "100BASE-LFX (10/100ME FIBER)" + // InterfaceTypeLabelNr100BASEDashTX10100ME captures enum value "100BASE-TX (10/100ME)" InterfaceTypeLabelNr100BASEDashTX10100ME string = "100BASE-TX (10/100ME)" + // InterfaceTypeLabelNr100BASEDashT110100MESinglePair captures enum value "100BASE-T1 (10/100ME Single Pair)" + InterfaceTypeLabelNr100BASEDashT110100MESinglePair string = "100BASE-T1 (10/100ME Single Pair)" + // InterfaceTypeLabelNr1000BASEDashT1GE captures enum value "1000BASE-T (1GE)" InterfaceTypeLabelNr1000BASEDashT1GE string = "1000BASE-T (1GE)" @@ -3734,6 +3805,12 @@ const ( // InterfaceTypeLabelOSFP400GE captures enum value "OSFP (400GE)" InterfaceTypeLabelOSFP400GE string = "OSFP (400GE)" + // InterfaceTypeLabelQSFPDashDD800GE captures enum value "QSFP-DD (800GE)" + InterfaceTypeLabelQSFPDashDD800GE string = "QSFP-DD (800GE)" + + // InterfaceTypeLabelOSFP800GE captures enum value "OSFP (800GE)" + InterfaceTypeLabelOSFP800GE string = "OSFP (800GE)" + // InterfaceTypeLabelNr1000BASEDashKX1GE captures enum value "1000BASE-KX (1GE)" InterfaceTypeLabelNr1000BASEDashKX1GE string = "1000BASE-KX (1GE)" @@ -3929,6 +4006,9 @@ const ( // InterfaceTypeLabelCiscoStackWiseDash480 captures enum value "Cisco StackWise-480" InterfaceTypeLabelCiscoStackWiseDash480 string = "Cisco StackWise-480" + // InterfaceTypeLabelCiscoStackWiseDash1T captures enum value "Cisco StackWise-1T" + InterfaceTypeLabelCiscoStackWiseDash1T string = "Cisco StackWise-1T" + // InterfaceTypeLabelJuniperVCP captures enum value "Juniper VCP" InterfaceTypeLabelJuniperVCP string = "Juniper VCP" @@ -3974,7 +4054,7 @@ var interfaceTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["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","50gbase-x-sfp56","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","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","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","50gbase-x-sfp56","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","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","cisco-stackwise-1t","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -3993,9 +4073,18 @@ const ( // InterfaceTypeValueLag captures enum value "lag" InterfaceTypeValueLag string = "lag" + // InterfaceTypeValueNr100baseDashFx captures enum value "100base-fx" + InterfaceTypeValueNr100baseDashFx string = "100base-fx" + + // InterfaceTypeValueNr100baseDashLfx captures enum value "100base-lfx" + InterfaceTypeValueNr100baseDashLfx string = "100base-lfx" + // InterfaceTypeValueNr100baseDashTx captures enum value "100base-tx" InterfaceTypeValueNr100baseDashTx string = "100base-tx" + // InterfaceTypeValueNr100baseDashT1 captures enum value "100base-t1" + InterfaceTypeValueNr100baseDashT1 string = "100base-t1" + // InterfaceTypeValueNr1000baseDasht captures enum value "1000base-t" InterfaceTypeValueNr1000baseDasht string = "1000base-t" @@ -4068,6 +4157,12 @@ const ( // InterfaceTypeValueNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" InterfaceTypeValueNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // InterfaceTypeValueNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + InterfaceTypeValueNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // InterfaceTypeValueNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + InterfaceTypeValueNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // InterfaceTypeValueNr1000baseDashKx captures enum value "1000base-kx" InterfaceTypeValueNr1000baseDashKx string = "1000base-kx" @@ -4263,6 +4358,9 @@ const ( // InterfaceTypeValueCiscoDashStackwiseDash480 captures enum value "cisco-stackwise-480" InterfaceTypeValueCiscoDashStackwiseDash480 string = "cisco-stackwise-480" + // InterfaceTypeValueCiscoDashStackwiseDash1t captures enum value "cisco-stackwise-1t" + InterfaceTypeValueCiscoDashStackwiseDash1t string = "cisco-stackwise-1t" + // InterfaceTypeValueJuniperDashVcp captures enum value "juniper-vcp" InterfaceTypeValueJuniperDashVcp string = "juniper-vcp" diff --git a/netbox/models/interface_template.go b/netbox/models/interface_template.go index af083669..bd8a57f2 100644 --- a/netbox/models/interface_template.go +++ b/netbox/models/interface_template.go @@ -847,12 +847,12 @@ type InterfaceTemplateType struct { // label // Required: true - // 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) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) 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) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] + // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-FX (10/100ME FIBER) 100BASE-LFX (10/100ME FIBER) 100BASE-TX (10/100ME) 100BASE-T1 (10/100ME Single Pair) 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) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) QSFP-DD (800GE) OSFP (800GE) 1000BASE-KX (1GE) 10GBASE-KR (10GE) 10GBASE-KX4 (10GE) 25GBASE-KR (25GE) 40GBASE-KR4 (40GE) 50GBASE-KR (50GE) 100GBASE-KP4 (100GE) 100GBASE-KR2 (100GE) 100GBASE-KR4 (100GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.11ay IEEE 802.15.1 (Bluetooth) Other (Wireless) 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) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Cisco StackWise-1T Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true - // 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 50gbase-x-sfp56 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 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 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 50gbase-x-sfp56 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 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 cisco-stackwise-1t juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -878,7 +878,7 @@ var interfaceTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["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)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","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)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-FX (10/100ME FIBER)","100BASE-LFX (10/100ME FIBER)","100BASE-TX (10/100ME)","100BASE-T1 (10/100ME Single Pair)","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)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","QSFP-DD (800GE)","OSFP (800GE)","1000BASE-KX (1GE)","10GBASE-KR (10GE)","10GBASE-KX4 (10GE)","25GBASE-KR (25GE)","40GBASE-KR4 (40GE)","50GBASE-KR (50GE)","100GBASE-KP4 (100GE)","100GBASE-KR2 (100GE)","100GBASE-KR4 (100GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.11ay","IEEE 802.15.1 (Bluetooth)","Other (Wireless)","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)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Cisco StackWise-1T","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -897,9 +897,18 @@ const ( // InterfaceTemplateTypeLabelLinkAggregationGroupLAG captures enum value "Link Aggregation Group (LAG)" InterfaceTemplateTypeLabelLinkAggregationGroupLAG string = "Link Aggregation Group (LAG)" + // InterfaceTemplateTypeLabelNr100BASEDashFX10100MEFIBER captures enum value "100BASE-FX (10/100ME FIBER)" + InterfaceTemplateTypeLabelNr100BASEDashFX10100MEFIBER string = "100BASE-FX (10/100ME FIBER)" + + // InterfaceTemplateTypeLabelNr100BASEDashLFX10100MEFIBER captures enum value "100BASE-LFX (10/100ME FIBER)" + InterfaceTemplateTypeLabelNr100BASEDashLFX10100MEFIBER string = "100BASE-LFX (10/100ME FIBER)" + // InterfaceTemplateTypeLabelNr100BASEDashTX10100ME captures enum value "100BASE-TX (10/100ME)" InterfaceTemplateTypeLabelNr100BASEDashTX10100ME string = "100BASE-TX (10/100ME)" + // InterfaceTemplateTypeLabelNr100BASEDashT110100MESinglePair captures enum value "100BASE-T1 (10/100ME Single Pair)" + InterfaceTemplateTypeLabelNr100BASEDashT110100MESinglePair string = "100BASE-T1 (10/100ME Single Pair)" + // InterfaceTemplateTypeLabelNr1000BASEDashT1GE captures enum value "1000BASE-T (1GE)" InterfaceTemplateTypeLabelNr1000BASEDashT1GE string = "1000BASE-T (1GE)" @@ -972,6 +981,12 @@ const ( // InterfaceTemplateTypeLabelOSFP400GE captures enum value "OSFP (400GE)" InterfaceTemplateTypeLabelOSFP400GE string = "OSFP (400GE)" + // InterfaceTemplateTypeLabelQSFPDashDD800GE captures enum value "QSFP-DD (800GE)" + InterfaceTemplateTypeLabelQSFPDashDD800GE string = "QSFP-DD (800GE)" + + // InterfaceTemplateTypeLabelOSFP800GE captures enum value "OSFP (800GE)" + InterfaceTemplateTypeLabelOSFP800GE string = "OSFP (800GE)" + // InterfaceTemplateTypeLabelNr1000BASEDashKX1GE captures enum value "1000BASE-KX (1GE)" InterfaceTemplateTypeLabelNr1000BASEDashKX1GE string = "1000BASE-KX (1GE)" @@ -1167,6 +1182,9 @@ const ( // InterfaceTemplateTypeLabelCiscoStackWiseDash480 captures enum value "Cisco StackWise-480" InterfaceTemplateTypeLabelCiscoStackWiseDash480 string = "Cisco StackWise-480" + // InterfaceTemplateTypeLabelCiscoStackWiseDash1T captures enum value "Cisco StackWise-1T" + InterfaceTemplateTypeLabelCiscoStackWiseDash1T string = "Cisco StackWise-1T" + // InterfaceTemplateTypeLabelJuniperVCP captures enum value "Juniper VCP" InterfaceTemplateTypeLabelJuniperVCP string = "Juniper VCP" @@ -1212,7 +1230,7 @@ var interfaceTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["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","50gbase-x-sfp56","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","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","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","50gbase-x-sfp56","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","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","cisco-stackwise-1t","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1231,9 +1249,18 @@ const ( // InterfaceTemplateTypeValueLag captures enum value "lag" InterfaceTemplateTypeValueLag string = "lag" + // InterfaceTemplateTypeValueNr100baseDashFx captures enum value "100base-fx" + InterfaceTemplateTypeValueNr100baseDashFx string = "100base-fx" + + // InterfaceTemplateTypeValueNr100baseDashLfx captures enum value "100base-lfx" + InterfaceTemplateTypeValueNr100baseDashLfx string = "100base-lfx" + // InterfaceTemplateTypeValueNr100baseDashTx captures enum value "100base-tx" InterfaceTemplateTypeValueNr100baseDashTx string = "100base-tx" + // InterfaceTemplateTypeValueNr100baseDashT1 captures enum value "100base-t1" + InterfaceTemplateTypeValueNr100baseDashT1 string = "100base-t1" + // InterfaceTemplateTypeValueNr1000baseDasht captures enum value "1000base-t" InterfaceTemplateTypeValueNr1000baseDasht string = "1000base-t" @@ -1306,6 +1333,12 @@ const ( // InterfaceTemplateTypeValueNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" InterfaceTemplateTypeValueNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // InterfaceTemplateTypeValueNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + InterfaceTemplateTypeValueNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // InterfaceTemplateTypeValueNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + InterfaceTemplateTypeValueNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // InterfaceTemplateTypeValueNr1000baseDashKx captures enum value "1000base-kx" InterfaceTemplateTypeValueNr1000baseDashKx string = "1000base-kx" @@ -1501,6 +1534,9 @@ const ( // InterfaceTemplateTypeValueCiscoDashStackwiseDash480 captures enum value "cisco-stackwise-480" InterfaceTemplateTypeValueCiscoDashStackwiseDash480 string = "cisco-stackwise-480" + // InterfaceTemplateTypeValueCiscoDashStackwiseDash1t captures enum value "cisco-stackwise-1t" + InterfaceTemplateTypeValueCiscoDashStackwiseDash1t string = "cisco-stackwise-1t" + // InterfaceTemplateTypeValueJuniperDashVcp captures enum value "juniper-vcp" InterfaceTemplateTypeValueJuniperDashVcp string = "juniper-vcp" diff --git a/netbox/models/ip_address.go b/netbox/models/ip_address.go index 6103aa97..9362a46d 100644 --- a/netbox/models/ip_address.go +++ b/netbox/models/ip_address.go @@ -54,6 +54,9 @@ type IPAddress struct { // Assigned object type AssignedObjectType *string `json:"assigned_object_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/ip_range.go b/netbox/models/ip_range.go index e21b70e5..68634222 100644 --- a/netbox/models/ip_range.go +++ b/netbox/models/ip_range.go @@ -40,6 +40,9 @@ type IPRange struct { // Read Only: true Children int64 `json:"children,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/job_result.go b/netbox/models/job_result.go index e5fa70f4..1f4cc859 100644 --- a/netbox/models/job_result.go +++ b/netbox/models/job_result.go @@ -55,6 +55,13 @@ type JobResult struct { // Read Only: true ID int64 `json:"id,omitempty"` + // Interval + // + // Recurrence interval (in minutes) + // Maximum: 2.147483647e+09 + // Minimum: 1 + Interval *int64 `json:"interval,omitempty"` + // Job id // Required: true // Format: uuid @@ -70,6 +77,14 @@ type JobResult struct { // Read Only: true ObjType string `json:"obj_type,omitempty"` + // Scheduled + // Format: date-time + Scheduled *strfmt.DateTime `json:"scheduled,omitempty"` + + // Started + // Format: date-time + Started *strfmt.DateTime `json:"started,omitempty"` + // status Status *JobResultStatus `json:"status,omitempty"` @@ -94,6 +109,10 @@ func (m *JobResult) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateInterval(formats); err != nil { + res = append(res, err) + } + if err := m.validateJobID(formats); err != nil { res = append(res, err) } @@ -102,6 +121,14 @@ func (m *JobResult) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateScheduled(formats); err != nil { + res = append(res, err) + } + + if err := m.validateStarted(formats); err != nil { + res = append(res, err) + } + if err := m.validateStatus(formats); err != nil { res = append(res, err) } @@ -144,6 +171,22 @@ func (m *JobResult) validateCreated(formats strfmt.Registry) error { return nil } +func (m *JobResult) validateInterval(formats strfmt.Registry) error { + if swag.IsZero(m.Interval) { // not required + return nil + } + + if err := validate.MinimumInt("interval", "body", *m.Interval, 1, false); err != nil { + return err + } + + if err := validate.MaximumInt("interval", "body", *m.Interval, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + func (m *JobResult) validateJobID(formats strfmt.Registry) error { if err := validate.Required("job_id", "body", m.JobID); err != nil { @@ -174,6 +217,30 @@ func (m *JobResult) validateName(formats strfmt.Registry) error { return nil } +func (m *JobResult) validateScheduled(formats strfmt.Registry) error { + if swag.IsZero(m.Scheduled) { // not required + return nil + } + + if err := validate.FormatOf("scheduled", "body", "date-time", m.Scheduled.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *JobResult) validateStarted(formats strfmt.Registry) error { + if swag.IsZero(m.Started) { // not required + return nil + } + + if err := validate.FormatOf("started", "body", "date-time", m.Started.String(), formats); err != nil { + return err + } + + return nil +} + func (m *JobResult) validateStatus(formats strfmt.Registry) error { if swag.IsZero(m.Status) { // not required return nil @@ -364,12 +431,12 @@ type JobResultStatus struct { // label // Required: true - // Enum: [Pending Running Completed Errored Failed] + // Enum: [Pending Scheduled Running Completed Errored Failed] Label *string `json:"label"` // value // Required: true - // Enum: [pending running completed errored failed] + // Enum: [pending scheduled running completed errored failed] Value *string `json:"value"` } @@ -395,7 +462,7 @@ var jobResultStatusTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Pending","Running","Completed","Errored","Failed"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Pending","Scheduled","Running","Completed","Errored","Failed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -408,6 +475,9 @@ const ( // JobResultStatusLabelPending captures enum value "Pending" JobResultStatusLabelPending string = "Pending" + // JobResultStatusLabelScheduled captures enum value "Scheduled" + JobResultStatusLabelScheduled string = "Scheduled" + // JobResultStatusLabelRunning captures enum value "Running" JobResultStatusLabelRunning string = "Running" @@ -447,7 +517,7 @@ var jobResultStatusTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["pending","running","completed","errored","failed"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["pending","scheduled","running","completed","errored","failed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -460,6 +530,9 @@ const ( // JobResultStatusValuePending captures enum value "pending" JobResultStatusValuePending string = "pending" + // JobResultStatusValueScheduled captures enum value "scheduled" + JobResultStatusValueScheduled string = "scheduled" + // JobResultStatusValueRunning captures enum value "running" JobResultStatusValueRunning string = "running" diff --git a/netbox/models/l2_v_p_n.go b/netbox/models/l2_v_p_n.go index 92190ffb..4f7a36d3 100644 --- a/netbox/models/l2_v_p_n.go +++ b/netbox/models/l2_v_p_n.go @@ -36,6 +36,9 @@ import ( // swagger:model L2VPN type L2VPN struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/module.go b/netbox/models/module.go index 1e175dad..1f5c23df 100644 --- a/netbox/models/module.go +++ b/netbox/models/module.go @@ -22,6 +22,7 @@ package models import ( "context" + "encoding/json" "strconv" "github.com/go-openapi/errors" @@ -52,6 +53,10 @@ type Module struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device // Required: true Device *NestedDevice `json:"device"` @@ -81,6 +86,9 @@ type Module struct { // Max Length: 50 Serial string `json:"serial,omitempty"` + // status + Status *ModuleStatus `json:"status,omitempty"` + // tags Tags []*NestedTag `json:"tags"` @@ -102,6 +110,10 @@ func (m *Module) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDevice(formats); err != nil { res = append(res, err) } @@ -122,6 +134,10 @@ func (m *Module) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -160,6 +176,18 @@ func (m *Module) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Module) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Module) validateDevice(formats strfmt.Registry) error { if err := validate.Required("device", "body", m.Device); err != nil { @@ -244,6 +272,25 @@ func (m *Module) validateSerial(formats strfmt.Registry) error { return nil } +func (m *Module) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + + if m.Status != nil { + if err := m.Status.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") + } + return err + } + } + + return nil +} + func (m *Module) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -314,6 +361,10 @@ func (m *Module) ContextValidate(ctx context.Context, formats strfmt.Registry) e res = append(res, err) } + if err := m.contextValidateStatus(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -412,6 +463,22 @@ func (m *Module) contextValidateModuleType(ctx context.Context, formats strfmt.R return nil } +func (m *Module) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + + if m.Status != nil { + if err := m.Status.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") + } + return err + } + } + + return nil +} + func (m *Module) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { @@ -458,3 +525,170 @@ func (m *Module) UnmarshalBinary(b []byte) error { *m = res return nil } + +// ModuleStatus Status +// +// swagger:model ModuleStatus +type ModuleStatus struct { + + // label + // Required: true + // Enum: [Offline Active Planned Staged Failed Decommissioning] + Label *string `json:"label"` + + // value + // Required: true + // Enum: [offline active planned staged failed decommissioning] + Value *string `json:"value"` +} + +// Validate validates this module status +func (m *ModuleStatus) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateLabel(formats); err != nil { + res = append(res, err) + } + + if err := m.validateValue(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var moduleStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Offline","Active","Planned","Staged","Failed","Decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + moduleStatusTypeLabelPropEnum = append(moduleStatusTypeLabelPropEnum, v) + } +} + +const ( + + // ModuleStatusLabelOffline captures enum value "Offline" + ModuleStatusLabelOffline string = "Offline" + + // ModuleStatusLabelActive captures enum value "Active" + ModuleStatusLabelActive string = "Active" + + // ModuleStatusLabelPlanned captures enum value "Planned" + ModuleStatusLabelPlanned string = "Planned" + + // ModuleStatusLabelStaged captures enum value "Staged" + ModuleStatusLabelStaged string = "Staged" + + // ModuleStatusLabelFailed captures enum value "Failed" + ModuleStatusLabelFailed string = "Failed" + + // ModuleStatusLabelDecommissioning captures enum value "Decommissioning" + ModuleStatusLabelDecommissioning string = "Decommissioning" +) + +// prop value enum +func (m *ModuleStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, moduleStatusTypeLabelPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *ModuleStatus) validateLabel(formats strfmt.Registry) error { + + if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { + return err + } + + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var moduleStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["offline","active","planned","staged","failed","decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + moduleStatusTypeValuePropEnum = append(moduleStatusTypeValuePropEnum, v) + } +} + +const ( + + // ModuleStatusValueOffline captures enum value "offline" + ModuleStatusValueOffline string = "offline" + + // ModuleStatusValueActive captures enum value "active" + ModuleStatusValueActive string = "active" + + // ModuleStatusValuePlanned captures enum value "planned" + ModuleStatusValuePlanned string = "planned" + + // ModuleStatusValueStaged captures enum value "staged" + ModuleStatusValueStaged string = "staged" + + // ModuleStatusValueFailed captures enum value "failed" + ModuleStatusValueFailed string = "failed" + + // ModuleStatusValueDecommissioning captures enum value "decommissioning" + ModuleStatusValueDecommissioning string = "decommissioning" +) + +// prop value enum +func (m *ModuleStatus) validateValueEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, moduleStatusTypeValuePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *ModuleStatus) validateValue(formats strfmt.Registry) error { + + if err := validate.Required("status"+"."+"value", "body", m.Value); err != nil { + return err + } + + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this module status based on context it is used +func (m *ModuleStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ModuleStatus) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ModuleStatus) UnmarshalBinary(b []byte) error { + var res ModuleStatus + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/module_type.go b/netbox/models/module_type.go index 068e5419..625041e0 100644 --- a/netbox/models/module_type.go +++ b/netbox/models/module_type.go @@ -22,6 +22,7 @@ package models import ( "context" + "encoding/json" "strconv" "github.com/go-openapi/errors" @@ -46,6 +47,10 @@ type ModuleType struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -82,6 +87,12 @@ type ModuleType struct { // Read Only: true // Format: uri URL strfmt.URI `json:"url,omitempty"` + + // Weight + Weight *float64 `json:"weight,omitempty"` + + // weight unit + WeightUnit *ModuleTypeWeightUnit `json:"weight_unit,omitempty"` } // Validate validates this module type @@ -92,6 +103,10 @@ func (m *ModuleType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -116,6 +131,10 @@ func (m *ModuleType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateWeightUnit(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -134,6 +153,18 @@ func (m *ModuleType) validateCreated(formats strfmt.Registry) error { return nil } +func (m *ModuleType) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *ModuleType) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil @@ -233,6 +264,25 @@ func (m *ModuleType) validateURL(formats strfmt.Registry) error { return nil } +func (m *ModuleType) validateWeightUnit(formats strfmt.Registry) error { + if swag.IsZero(m.WeightUnit) { // not required + return nil + } + + if m.WeightUnit != nil { + if err := m.WeightUnit.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("weight_unit") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("weight_unit") + } + return err + } + } + + return nil +} + // ContextValidate validate this module type based on the context it is used func (m *ModuleType) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error @@ -265,6 +315,10 @@ func (m *ModuleType) ContextValidate(ctx context.Context, formats strfmt.Registr res = append(res, err) } + if err := m.contextValidateWeightUnit(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -352,6 +406,22 @@ func (m *ModuleType) contextValidateURL(ctx context.Context, formats strfmt.Regi return nil } +func (m *ModuleType) contextValidateWeightUnit(ctx context.Context, formats strfmt.Registry) error { + + if m.WeightUnit != nil { + if err := m.WeightUnit.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("weight_unit") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("weight_unit") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *ModuleType) MarshalBinary() ([]byte, error) { if m == nil { @@ -369,3 +439,158 @@ func (m *ModuleType) UnmarshalBinary(b []byte) error { *m = res return nil } + +// ModuleTypeWeightUnit Weight unit +// +// swagger:model ModuleTypeWeightUnit +type ModuleTypeWeightUnit struct { + + // label + // Required: true + // Enum: [Kilograms Grams Pounds Ounces] + Label *string `json:"label"` + + // value + // Required: true + // Enum: [kg g lb oz] + Value *string `json:"value"` +} + +// Validate validates this module type weight unit +func (m *ModuleTypeWeightUnit) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateLabel(formats); err != nil { + res = append(res, err) + } + + if err := m.validateValue(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var moduleTypeWeightUnitTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Kilograms","Grams","Pounds","Ounces"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + moduleTypeWeightUnitTypeLabelPropEnum = append(moduleTypeWeightUnitTypeLabelPropEnum, v) + } +} + +const ( + + // ModuleTypeWeightUnitLabelKilograms captures enum value "Kilograms" + ModuleTypeWeightUnitLabelKilograms string = "Kilograms" + + // ModuleTypeWeightUnitLabelGrams captures enum value "Grams" + ModuleTypeWeightUnitLabelGrams string = "Grams" + + // ModuleTypeWeightUnitLabelPounds captures enum value "Pounds" + ModuleTypeWeightUnitLabelPounds string = "Pounds" + + // ModuleTypeWeightUnitLabelOunces captures enum value "Ounces" + ModuleTypeWeightUnitLabelOunces string = "Ounces" +) + +// prop value enum +func (m *ModuleTypeWeightUnit) validateLabelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, moduleTypeWeightUnitTypeLabelPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *ModuleTypeWeightUnit) validateLabel(formats strfmt.Registry) error { + + if err := validate.Required("weight_unit"+"."+"label", "body", m.Label); err != nil { + return err + } + + // value enum + if err := m.validateLabelEnum("weight_unit"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var moduleTypeWeightUnitTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["kg","g","lb","oz"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + moduleTypeWeightUnitTypeValuePropEnum = append(moduleTypeWeightUnitTypeValuePropEnum, v) + } +} + +const ( + + // ModuleTypeWeightUnitValueKg captures enum value "kg" + ModuleTypeWeightUnitValueKg string = "kg" + + // ModuleTypeWeightUnitValueG captures enum value "g" + ModuleTypeWeightUnitValueG string = "g" + + // ModuleTypeWeightUnitValueLb captures enum value "lb" + ModuleTypeWeightUnitValueLb string = "lb" + + // ModuleTypeWeightUnitValueOz captures enum value "oz" + ModuleTypeWeightUnitValueOz string = "oz" +) + +// prop value enum +func (m *ModuleTypeWeightUnit) validateValueEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, moduleTypeWeightUnitTypeValuePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *ModuleTypeWeightUnit) validateValue(formats strfmt.Registry) error { + + if err := validate.Required("weight_unit"+"."+"value", "body", m.Value); err != nil { + return err + } + + // value enum + if err := m.validateValueEnum("weight_unit"+"."+"value", "body", *m.Value); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this module type weight unit based on context it is used +func (m *ModuleTypeWeightUnit) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ModuleTypeWeightUnit) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ModuleTypeWeightUnit) UnmarshalBinary(b []byte) error { + var res ModuleTypeWeightUnit + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/nested_virtual_device_context.go b/netbox/models/nested_virtual_device_context.go new file mode 100644 index 00000000..9786ea61 --- /dev/null +++ b/netbox/models/nested_virtual_device_context.go @@ -0,0 +1,244 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// NestedVirtualDeviceContext nested virtual device context +// +// swagger:model NestedVirtualDeviceContext +type NestedVirtualDeviceContext struct { + + // device + // Required: true + Device *NestedDevice `json:"device"` + + // Display + // Read Only: true + Display string `json:"display,omitempty"` + + // ID + // Read Only: true + ID int64 `json:"id,omitempty"` + + // Identifier + // + // Numeric identifier unique to the parent device + // Maximum: 32767 + // Minimum: 0 + Identifier *int64 `json:"identifier,omitempty"` + + // Name + // Required: true + // Max Length: 64 + // Min Length: 1 + Name *string `json:"name"` + + // Url + // Read Only: true + // Format: uri + URL strfmt.URI `json:"url,omitempty"` +} + +// Validate validates this nested virtual device context +func (m *NestedVirtualDeviceContext) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateDevice(formats); err != nil { + res = append(res, err) + } + + if err := m.validateIdentifier(formats); err != nil { + res = append(res, err) + } + + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + + if err := m.validateURL(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *NestedVirtualDeviceContext) validateDevice(formats strfmt.Registry) error { + + if err := validate.Required("device", "body", m.Device); err != nil { + return err + } + + if m.Device != nil { + if err := m.Device.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("device") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("device") + } + return err + } + } + + return nil +} + +func (m *NestedVirtualDeviceContext) validateIdentifier(formats strfmt.Registry) error { + if swag.IsZero(m.Identifier) { // not required + return nil + } + + if err := validate.MinimumInt("identifier", "body", *m.Identifier, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("identifier", "body", *m.Identifier, 32767, false); err != nil { + return err + } + + return nil +} + +func (m *NestedVirtualDeviceContext) validateName(formats strfmt.Registry) error { + + if err := validate.Required("name", "body", m.Name); err != nil { + return err + } + + if err := validate.MinLength("name", "body", *m.Name, 1); err != nil { + return err + } + + if err := validate.MaxLength("name", "body", *m.Name, 64); err != nil { + return err + } + + return nil +} + +func (m *NestedVirtualDeviceContext) validateURL(formats strfmt.Registry) error { + if swag.IsZero(m.URL) { // not required + return nil + } + + if err := validate.FormatOf("url", "body", "uri", m.URL.String(), formats); err != nil { + return err + } + + return nil +} + +// ContextValidate validate this nested virtual device context based on the context it is used +func (m *NestedVirtualDeviceContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateDevice(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDisplay(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateID(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateURL(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *NestedVirtualDeviceContext) contextValidateDevice(ctx context.Context, formats strfmt.Registry) error { + + if m.Device != nil { + if err := m.Device.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("device") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("device") + } + return err + } + } + + return nil +} + +func (m *NestedVirtualDeviceContext) contextValidateDisplay(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "display", "body", string(m.Display)); err != nil { + return err + } + + return nil +} + +func (m *NestedVirtualDeviceContext) contextValidateID(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "id", "body", int64(m.ID)); err != nil { + return err + } + + return nil +} + +func (m *NestedVirtualDeviceContext) contextValidateURL(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "url", "body", strfmt.URI(m.URL)); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *NestedVirtualDeviceContext) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *NestedVirtualDeviceContext) UnmarshalBinary(b []byte) error { + var res NestedVirtualDeviceContext + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/power_feed.go b/netbox/models/power_feed.go index 300e6bd4..ed2594d5 100644 --- a/netbox/models/power_feed.go +++ b/netbox/models/power_feed.go @@ -78,6 +78,10 @@ type PowerFeed struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -172,6 +176,10 @@ func (m *PowerFeed) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -285,6 +293,18 @@ func (m *PowerFeed) validateCreated(formats strfmt.Registry) error { return nil } +func (m *PowerFeed) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *PowerFeed) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil diff --git a/netbox/models/power_panel.go b/netbox/models/power_panel.go index 574530d7..3db566d5 100644 --- a/netbox/models/power_panel.go +++ b/netbox/models/power_panel.go @@ -35,6 +35,9 @@ import ( // swagger:model PowerPanel type PowerPanel struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -43,6 +46,10 @@ type PowerPanel struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -90,6 +97,10 @@ func (m *PowerPanel) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -132,6 +143,18 @@ func (m *PowerPanel) validateCreated(formats strfmt.Registry) error { return nil } +func (m *PowerPanel) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *PowerPanel) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil diff --git a/netbox/models/prefix.go b/netbox/models/prefix.go index c9dfd035..f586c2a7 100644 --- a/netbox/models/prefix.go +++ b/netbox/models/prefix.go @@ -44,6 +44,9 @@ type Prefix struct { // Read Only: true Children int64 `json:"children,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/provider.go b/netbox/models/provider.go index 04b94759..92519748 100644 --- a/netbox/models/provider.go +++ b/netbox/models/provider.go @@ -39,16 +39,6 @@ type Provider struct { // Max Length: 30 Account string `json:"account,omitempty"` - // Admin contact - AdminContact string `json:"admin_contact,omitempty"` - - // ASN - // - // 32-bit autonomous system number - // Maximum: 4.294967295e+09 - // Minimum: 1 - Asn *int64 `json:"asn,omitempty"` - // asns // Unique: true Asns []*NestedASN `json:"asns"` @@ -68,6 +58,10 @@ type Provider struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -87,14 +81,6 @@ type Provider struct { // Min Length: 1 Name *string `json:"name"` - // NOC contact - NocContact string `json:"noc_contact,omitempty"` - - // Portal URL - // Max Length: 200 - // Format: uri - PortalURL strfmt.URI `json:"portal_url,omitempty"` - // Slug // Required: true // Max Length: 100 @@ -119,10 +105,6 @@ func (m *Provider) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateAsn(formats); err != nil { - res = append(res, err) - } - if err := m.validateAsns(formats); err != nil { res = append(res, err) } @@ -131,15 +113,15 @@ func (m *Provider) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateLastUpdated(formats); err != nil { + if err := m.validateDescription(formats); err != nil { res = append(res, err) } - if err := m.validateName(formats); err != nil { + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } - if err := m.validatePortalURL(formats); err != nil { + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -173,22 +155,6 @@ func (m *Provider) validateAccount(formats strfmt.Registry) error { return nil } -func (m *Provider) validateAsn(formats strfmt.Registry) error { - if swag.IsZero(m.Asn) { // not required - return nil - } - - if err := validate.MinimumInt("asn", "body", *m.Asn, 1, false); err != nil { - return err - } - - if err := validate.MaximumInt("asn", "body", *m.Asn, 4.294967295e+09, false); err != nil { - return err - } - - return nil -} - func (m *Provider) validateAsns(formats strfmt.Registry) error { if swag.IsZero(m.Asns) { // not required return nil @@ -231,6 +197,18 @@ func (m *Provider) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Provider) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Provider) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil @@ -260,22 +238,6 @@ func (m *Provider) validateName(formats strfmt.Registry) error { return nil } -func (m *Provider) validatePortalURL(formats strfmt.Registry) error { - if swag.IsZero(m.PortalURL) { // not required - return nil - } - - if err := validate.MaxLength("portal_url", "body", m.PortalURL.String(), 200); err != nil { - return err - } - - if err := validate.FormatOf("portal_url", "body", "uri", m.PortalURL.String(), formats); err != nil { - return err - } - - return nil -} - func (m *Provider) validateSlug(formats strfmt.Registry) error { if err := validate.Required("slug", "body", m.Slug); err != nil { diff --git a/netbox/models/rack.go b/netbox/models/rack.go index 57196e35..1d225ab9 100644 --- a/netbox/models/rack.go +++ b/netbox/models/rack.go @@ -58,6 +58,10 @@ type Rack struct { // Units are numbered top-to-bottom DescUnits bool `json:"desc_units,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -82,6 +86,20 @@ type Rack struct { // location Location *NestedLocation `json:"location,omitempty"` + // Max weight + // + // Maximum load capacity for the rack + // Maximum: 2.147483647e+09 + // Minimum: 0 + MaxWeight *int64 `json:"max_weight,omitempty"` + + // Mounting depth + // + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + // Maximum: 32767 + // Minimum: 0 + MountingDepth *int64 `json:"mounting_depth,omitempty"` + // Name // Required: true // Max Length: 100 @@ -144,6 +162,12 @@ type Rack struct { // Format: uri URL strfmt.URI `json:"url,omitempty"` + // Weight + Weight *float64 `json:"weight,omitempty"` + + // weight unit + WeightUnit *RackWeightUnit `json:"weight_unit,omitempty"` + // width Width *RackWidth `json:"width,omitempty"` } @@ -160,6 +184,10 @@ func (m *Rack) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateFacilityID(formats); err != nil { res = append(res, err) } @@ -172,6 +200,14 @@ func (m *Rack) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateMaxWeight(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMountingDepth(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -224,6 +260,10 @@ func (m *Rack) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateWeightUnit(formats); err != nil { + res = append(res, err) + } + if err := m.validateWidth(formats); err != nil { res = append(res, err) } @@ -258,6 +298,18 @@ func (m *Rack) validateCreated(formats strfmt.Registry) error { return nil } +func (m *Rack) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *Rack) validateFacilityID(formats strfmt.Registry) error { if swag.IsZero(m.FacilityID) { // not required return nil @@ -301,6 +353,38 @@ func (m *Rack) validateLocation(formats strfmt.Registry) error { return nil } +func (m *Rack) validateMaxWeight(formats strfmt.Registry) error { + if swag.IsZero(m.MaxWeight) { // not required + return nil + } + + if err := validate.MinimumInt("max_weight", "body", *m.MaxWeight, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("max_weight", "body", *m.MaxWeight, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + +func (m *Rack) validateMountingDepth(formats strfmt.Registry) error { + if swag.IsZero(m.MountingDepth) { // not required + return nil + } + + if err := validate.MinimumInt("mounting_depth", "body", *m.MountingDepth, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("mounting_depth", "body", *m.MountingDepth, 32767, false); err != nil { + return err + } + + return nil +} + func (m *Rack) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -531,6 +615,25 @@ func (m *Rack) validateURL(formats strfmt.Registry) error { return nil } +func (m *Rack) validateWeightUnit(formats strfmt.Registry) error { + if swag.IsZero(m.WeightUnit) { // not required + return nil + } + + if m.WeightUnit != nil { + if err := m.WeightUnit.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("weight_unit") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("weight_unit") + } + return err + } + } + + return nil +} + func (m *Rack) validateWidth(formats strfmt.Registry) error { if swag.IsZero(m.Width) { // not required return nil @@ -614,6 +717,10 @@ func (m *Rack) ContextValidate(ctx context.Context, formats strfmt.Registry) err res = append(res, err) } + if err := m.contextValidateWeightUnit(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateWidth(ctx, formats); err != nil { res = append(res, err) } @@ -819,6 +926,22 @@ func (m *Rack) contextValidateURL(ctx context.Context, formats strfmt.Registry) return nil } +func (m *Rack) contextValidateWeightUnit(ctx context.Context, formats strfmt.Registry) error { + + if m.WeightUnit != nil { + if err := m.WeightUnit.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("weight_unit") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("weight_unit") + } + return err + } + } + + return nil +} + func (m *Rack) contextValidateWidth(ctx context.Context, formats strfmt.Registry) error { if m.Width != nil { @@ -1330,6 +1453,161 @@ func (m *RackType) UnmarshalBinary(b []byte) error { return nil } +// RackWeightUnit Weight unit +// +// swagger:model RackWeightUnit +type RackWeightUnit struct { + + // label + // Required: true + // Enum: [Kilograms Grams Pounds Ounces] + Label *string `json:"label"` + + // value + // Required: true + // Enum: [kg g lb oz] + Value *string `json:"value"` +} + +// Validate validates this rack weight unit +func (m *RackWeightUnit) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateLabel(formats); err != nil { + res = append(res, err) + } + + if err := m.validateValue(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var rackWeightUnitTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Kilograms","Grams","Pounds","Ounces"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackWeightUnitTypeLabelPropEnum = append(rackWeightUnitTypeLabelPropEnum, v) + } +} + +const ( + + // RackWeightUnitLabelKilograms captures enum value "Kilograms" + RackWeightUnitLabelKilograms string = "Kilograms" + + // RackWeightUnitLabelGrams captures enum value "Grams" + RackWeightUnitLabelGrams string = "Grams" + + // RackWeightUnitLabelPounds captures enum value "Pounds" + RackWeightUnitLabelPounds string = "Pounds" + + // RackWeightUnitLabelOunces captures enum value "Ounces" + RackWeightUnitLabelOunces string = "Ounces" +) + +// prop value enum +func (m *RackWeightUnit) validateLabelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, rackWeightUnitTypeLabelPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *RackWeightUnit) validateLabel(formats strfmt.Registry) error { + + if err := validate.Required("weight_unit"+"."+"label", "body", m.Label); err != nil { + return err + } + + // value enum + if err := m.validateLabelEnum("weight_unit"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rackWeightUnitTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["kg","g","lb","oz"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackWeightUnitTypeValuePropEnum = append(rackWeightUnitTypeValuePropEnum, v) + } +} + +const ( + + // RackWeightUnitValueKg captures enum value "kg" + RackWeightUnitValueKg string = "kg" + + // RackWeightUnitValueG captures enum value "g" + RackWeightUnitValueG string = "g" + + // RackWeightUnitValueLb captures enum value "lb" + RackWeightUnitValueLb string = "lb" + + // RackWeightUnitValueOz captures enum value "oz" + RackWeightUnitValueOz string = "oz" +) + +// prop value enum +func (m *RackWeightUnit) validateValueEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, rackWeightUnitTypeValuePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *RackWeightUnit) validateValue(formats strfmt.Registry) error { + + if err := validate.Required("weight_unit"+"."+"value", "body", m.Value); err != nil { + return err + } + + // value enum + if err := m.validateValueEnum("weight_unit"+"."+"value", "body", *m.Value); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this rack weight unit based on context it is used +func (m *RackWeightUnit) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RackWeightUnit) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RackWeightUnit) UnmarshalBinary(b []byte) error { + var res RackWeightUnit + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} + // RackWidth Width // // swagger:model RackWidth diff --git a/netbox/models/rack_reservation.go b/netbox/models/rack_reservation.go index 85b31b46..fc7bd5ad 100644 --- a/netbox/models/rack_reservation.go +++ b/netbox/models/rack_reservation.go @@ -35,6 +35,9 @@ import ( // swagger:model RackReservation type RackReservation struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/route_target.go b/netbox/models/route_target.go index 37446e8d..41dbaa7d 100644 --- a/netbox/models/route_target.go +++ b/netbox/models/route_target.go @@ -35,6 +35,9 @@ import ( // swagger:model RouteTarget type RouteTarget struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/saved_filter.go b/netbox/models/saved_filter.go new file mode 100644 index 00000000..2b39ca58 --- /dev/null +++ b/netbox/models/saved_filter.go @@ -0,0 +1,362 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SavedFilter saved filter +// +// swagger:model SavedFilter +type SavedFilter struct { + + // content types + // Required: true + // Unique: true + ContentTypes []string `json:"content_types"` + + // Created + // Read Only: true + // Format: date-time + Created *strfmt.DateTime `json:"created,omitempty"` + + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + + // Display + // Read Only: true + Display string `json:"display,omitempty"` + + // Enabled + Enabled bool `json:"enabled,omitempty"` + + // ID + // Read Only: true + ID int64 `json:"id,omitempty"` + + // Last updated + // Read Only: true + // Format: date-time + LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` + + // Name + // Required: true + // Max Length: 100 + // Min Length: 1 + Name *string `json:"name"` + + // Parameters + // Required: true + Parameters interface{} `json:"parameters"` + + // Shared + Shared bool `json:"shared,omitempty"` + + // Slug + // Required: true + // Max Length: 100 + // Min Length: 1 + // Pattern: ^[-a-zA-Z0-9_]+$ + Slug *string `json:"slug"` + + // Url + // Read Only: true + // Format: uri + URL strfmt.URI `json:"url,omitempty"` + + // User + User *int64 `json:"user,omitempty"` + + // Weight + // Maximum: 32767 + // Minimum: 0 + Weight *int64 `json:"weight,omitempty"` +} + +// Validate validates this saved filter +func (m *SavedFilter) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateContentTypes(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCreated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + + if err := m.validateLastUpdated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + + if err := m.validateParameters(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSlug(formats); err != nil { + res = append(res, err) + } + + if err := m.validateURL(formats); err != nil { + res = append(res, err) + } + + if err := m.validateWeight(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SavedFilter) validateContentTypes(formats strfmt.Registry) error { + + if err := validate.Required("content_types", "body", m.ContentTypes); err != nil { + return err + } + + if err := validate.UniqueItems("content_types", "body", m.ContentTypes); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateCreated(formats strfmt.Registry) error { + if swag.IsZero(m.Created) { // not required + return nil + } + + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateLastUpdated(formats strfmt.Registry) error { + if swag.IsZero(m.LastUpdated) { // not required + return nil + } + + if err := validate.FormatOf("last_updated", "body", "date-time", m.LastUpdated.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateName(formats strfmt.Registry) error { + + if err := validate.Required("name", "body", m.Name); err != nil { + return err + } + + if err := validate.MinLength("name", "body", *m.Name, 1); err != nil { + return err + } + + if err := validate.MaxLength("name", "body", *m.Name, 100); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateParameters(formats strfmt.Registry) error { + + if m.Parameters == nil { + return errors.Required("parameters", "body", nil) + } + + return nil +} + +func (m *SavedFilter) validateSlug(formats strfmt.Registry) error { + + if err := validate.Required("slug", "body", m.Slug); err != nil { + return err + } + + if err := validate.MinLength("slug", "body", *m.Slug, 1); err != nil { + return err + } + + if err := validate.MaxLength("slug", "body", *m.Slug, 100); err != nil { + return err + } + + if err := validate.Pattern("slug", "body", *m.Slug, `^[-a-zA-Z0-9_]+$`); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateURL(formats strfmt.Registry) error { + if swag.IsZero(m.URL) { // not required + return nil + } + + if err := validate.FormatOf("url", "body", "uri", m.URL.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) validateWeight(formats strfmt.Registry) error { + if swag.IsZero(m.Weight) { // not required + return nil + } + + if err := validate.MinimumInt("weight", "body", *m.Weight, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("weight", "body", *m.Weight, 32767, false); err != nil { + return err + } + + return nil +} + +// ContextValidate validate this saved filter based on the context it is used +func (m *SavedFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCreated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDisplay(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateID(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateLastUpdated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateURL(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SavedFilter) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created", "body", m.Created); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) contextValidateDisplay(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "display", "body", string(m.Display)); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) contextValidateID(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "id", "body", int64(m.ID)); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) contextValidateLastUpdated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "last_updated", "body", m.LastUpdated); err != nil { + return err + } + + return nil +} + +func (m *SavedFilter) contextValidateURL(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "url", "body", strfmt.URI(m.URL)); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SavedFilter) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SavedFilter) UnmarshalBinary(b []byte) error { + var res SavedFilter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/service.go b/netbox/models/service.go index 4c4a0289..87e70f1e 100644 --- a/netbox/models/service.go +++ b/netbox/models/service.go @@ -36,6 +36,9 @@ import ( // swagger:model Service type Service struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/service_template.go b/netbox/models/service_template.go index 18c89440..4a33a222 100644 --- a/netbox/models/service_template.go +++ b/netbox/models/service_template.go @@ -36,6 +36,9 @@ import ( // swagger:model ServiceTemplate type ServiceTemplate struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/v_l_a_n.go b/netbox/models/v_l_a_n.go index 6aaed092..fab3385d 100644 --- a/netbox/models/v_l_a_n.go +++ b/netbox/models/v_l_a_n.go @@ -36,6 +36,9 @@ import ( // swagger:model VLAN type VLAN struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/v_r_f.go b/netbox/models/v_r_f.go index aa0e6e2c..9a706b4d 100644 --- a/netbox/models/v_r_f.go +++ b/netbox/models/v_r_f.go @@ -35,6 +35,9 @@ import ( // swagger:model VRF type VRF struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/virtual_chassis.go b/netbox/models/virtual_chassis.go index ada4fa6c..d4ca81c9 100644 --- a/netbox/models/virtual_chassis.go +++ b/netbox/models/virtual_chassis.go @@ -35,6 +35,9 @@ import ( // swagger:model VirtualChassis type VirtualChassis struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -43,6 +46,10 @@ type VirtualChassis struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -90,6 +97,10 @@ func (m *VirtualChassis) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDomain(formats); err != nil { res = append(res, err) } @@ -132,6 +143,18 @@ func (m *VirtualChassis) validateCreated(formats strfmt.Registry) error { return nil } +func (m *VirtualChassis) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *VirtualChassis) validateDomain(formats strfmt.Registry) error { if swag.IsZero(m.Domain) { // not required return nil diff --git a/netbox/models/virtual_device_context.go b/netbox/models/virtual_device_context.go new file mode 100644 index 00000000..9bf04d57 --- /dev/null +++ b/netbox/models/virtual_device_context.go @@ -0,0 +1,653 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// VirtualDeviceContext virtual device context +// +// swagger:model VirtualDeviceContext +type VirtualDeviceContext struct { + + // Comments + Comments string `json:"comments,omitempty"` + + // Created + // Read Only: true + // Format: date-time + Created *strfmt.DateTime `json:"created,omitempty"` + + // Custom fields + CustomFields interface{} `json:"custom_fields,omitempty"` + + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + + // device + // Required: true + Device *NestedDevice `json:"device"` + + // Display + // Read Only: true + Display string `json:"display,omitempty"` + + // ID + // Read Only: true + ID int64 `json:"id,omitempty"` + + // Identifier + // + // Numeric identifier unique to the parent device + // Maximum: 32767 + // Minimum: 0 + Identifier *int64 `json:"identifier,omitempty"` + + // Interface count + // Read Only: true + InterfaceCount int64 `json:"interface_count,omitempty"` + + // Last updated + // Read Only: true + // Format: date-time + LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` + + // Name + // Required: true + // Max Length: 64 + // Min Length: 1 + Name *string `json:"name"` + + // primary ip + PrimaryIP *NestedIPAddress `json:"primary_ip,omitempty"` + + // primary ip4 + PrimaryIp4 *NestedIPAddress `json:"primary_ip4,omitempty"` + + // primary ip6 + PrimaryIp6 *NestedIPAddress `json:"primary_ip6,omitempty"` + + // Status + // Required: true + // Enum: [active planned offline] + Status *string `json:"status"` + + // tags + Tags []*NestedTag `json:"tags"` + + // tenant + Tenant *NestedTenant `json:"tenant,omitempty"` + + // Url + // Read Only: true + // Format: uri + URL strfmt.URI `json:"url,omitempty"` +} + +// Validate validates this virtual device context +func (m *VirtualDeviceContext) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCreated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDevice(formats); err != nil { + res = append(res, err) + } + + if err := m.validateIdentifier(formats); err != nil { + res = append(res, err) + } + + if err := m.validateLastUpdated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePrimaryIP(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePrimaryIp4(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePrimaryIp6(formats); err != nil { + res = append(res, err) + } + + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTags(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTenant(formats); err != nil { + res = append(res, err) + } + + if err := m.validateURL(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *VirtualDeviceContext) validateCreated(formats strfmt.Registry) error { + if swag.IsZero(m.Created) { // not required + return nil + } + + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) validateDevice(formats strfmt.Registry) error { + + if err := validate.Required("device", "body", m.Device); err != nil { + return err + } + + if m.Device != nil { + if err := m.Device.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("device") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("device") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) validateIdentifier(formats strfmt.Registry) error { + if swag.IsZero(m.Identifier) { // not required + return nil + } + + if err := validate.MinimumInt("identifier", "body", *m.Identifier, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("identifier", "body", *m.Identifier, 32767, false); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) validateLastUpdated(formats strfmt.Registry) error { + if swag.IsZero(m.LastUpdated) { // not required + return nil + } + + if err := validate.FormatOf("last_updated", "body", "date-time", m.LastUpdated.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) validateName(formats strfmt.Registry) error { + + if err := validate.Required("name", "body", m.Name); err != nil { + return err + } + + if err := validate.MinLength("name", "body", *m.Name, 1); err != nil { + return err + } + + if err := validate.MaxLength("name", "body", *m.Name, 64); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) validatePrimaryIP(formats strfmt.Registry) error { + if swag.IsZero(m.PrimaryIP) { // not required + return nil + } + + if m.PrimaryIP != nil { + if err := m.PrimaryIP.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_ip") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("primary_ip") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) validatePrimaryIp4(formats strfmt.Registry) error { + if swag.IsZero(m.PrimaryIp4) { // not required + return nil + } + + if m.PrimaryIp4 != nil { + if err := m.PrimaryIp4.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_ip4") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("primary_ip4") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) validatePrimaryIp6(formats strfmt.Registry) error { + if swag.IsZero(m.PrimaryIp6) { // not required + return nil + } + + if m.PrimaryIp6 != nil { + if err := m.PrimaryIp6.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_ip6") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("primary_ip6") + } + return err + } + } + + return nil +} + +var virtualDeviceContextTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","planned","offline"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualDeviceContextTypeStatusPropEnum = append(virtualDeviceContextTypeStatusPropEnum, v) + } +} + +const ( + + // VirtualDeviceContextStatusActive captures enum value "active" + VirtualDeviceContextStatusActive string = "active" + + // VirtualDeviceContextStatusPlanned captures enum value "planned" + VirtualDeviceContextStatusPlanned string = "planned" + + // VirtualDeviceContextStatusOffline captures enum value "offline" + VirtualDeviceContextStatusOffline string = "offline" +) + +// prop value enum +func (m *VirtualDeviceContext) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, virtualDeviceContextTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *VirtualDeviceContext) validateStatus(formats strfmt.Registry) error { + + if err := validate.Required("status", "body", m.Status); err != nil { + return err + } + + // value enum + if err := m.validateStatusEnum("status", "body", *m.Status); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) validateTags(formats strfmt.Registry) error { + if swag.IsZero(m.Tags) { // not required + return nil + } + + for i := 0; i < len(m.Tags); i++ { + if swag.IsZero(m.Tags[i]) { // not required + continue + } + + if m.Tags[i] != nil { + if err := m.Tags[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *VirtualDeviceContext) validateTenant(formats strfmt.Registry) error { + if swag.IsZero(m.Tenant) { // not required + return nil + } + + if m.Tenant != nil { + if err := m.Tenant.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tenant") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenant") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) validateURL(formats strfmt.Registry) error { + if swag.IsZero(m.URL) { // not required + return nil + } + + if err := validate.FormatOf("url", "body", "uri", m.URL.String(), formats); err != nil { + return err + } + + return nil +} + +// ContextValidate validate this virtual device context based on the context it is used +func (m *VirtualDeviceContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCreated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDevice(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDisplay(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateID(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateInterfaceCount(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateLastUpdated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePrimaryIP(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePrimaryIp4(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePrimaryIp6(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTags(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTenant(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateURL(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *VirtualDeviceContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created", "body", m.Created); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateDevice(ctx context.Context, formats strfmt.Registry) error { + + if m.Device != nil { + if err := m.Device.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("device") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("device") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateDisplay(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "display", "body", string(m.Display)); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateID(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "id", "body", int64(m.ID)); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateInterfaceCount(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "interface_count", "body", int64(m.InterfaceCount)); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateLastUpdated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "last_updated", "body", m.LastUpdated); err != nil { + return err + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidatePrimaryIP(ctx context.Context, formats strfmt.Registry) error { + + if m.PrimaryIP != nil { + if err := m.PrimaryIP.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_ip") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("primary_ip") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidatePrimaryIp4(ctx context.Context, formats strfmt.Registry) error { + + if m.PrimaryIp4 != nil { + if err := m.PrimaryIp4.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_ip4") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("primary_ip4") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidatePrimaryIp6(ctx context.Context, formats strfmt.Registry) error { + + if m.PrimaryIp6 != nil { + if err := m.PrimaryIp6.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("primary_ip6") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("primary_ip6") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Tags); i++ { + + if m.Tags[i] != nil { + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateTenant(ctx context.Context, formats strfmt.Registry) error { + + if m.Tenant != nil { + if err := m.Tenant.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tenant") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenant") + } + return err + } + } + + return nil +} + +func (m *VirtualDeviceContext) contextValidateURL(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "url", "body", strfmt.URI(m.URL)); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *VirtualDeviceContext) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *VirtualDeviceContext) UnmarshalBinary(b []byte) error { + var res VirtualDeviceContext + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/virtual_machine_with_config_context.go b/netbox/models/virtual_machine_with_config_context.go index a072355b..d084d537 100644 --- a/netbox/models/virtual_machine_with_config_context.go +++ b/netbox/models/virtual_machine_with_config_context.go @@ -54,6 +54,10 @@ type VirtualMachineWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // device Device *NestedDevice `json:"device,omitempty"` @@ -138,6 +142,10 @@ func (m *VirtualMachineWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDevice(formats); err != nil { res = append(res, err) } @@ -239,6 +247,18 @@ func (m *VirtualMachineWithConfigContext) validateCreated(formats strfmt.Registr return nil } +func (m *VirtualMachineWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *VirtualMachineWithConfigContext) validateDevice(formats strfmt.Registry) error { if swag.IsZero(m.Device) { // not required return nil diff --git a/netbox/models/webhook.go b/netbox/models/webhook.go index 5459eaa6..25ea8eab 100644 --- a/netbox/models/webhook.go +++ b/netbox/models/webhook.go @@ -121,17 +121,17 @@ type Webhook struct { // Type create // // Call this webhook when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` + TypeCreate bool `json:"type_create,omitempty"` // Type delete // // Call this webhook when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` + TypeDelete bool `json:"type_delete,omitempty"` // Type update // // Call this webhook when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` + TypeUpdate bool `json:"type_update,omitempty"` // Url // Read Only: true diff --git a/netbox/models/wireless_l_a_n.go b/netbox/models/wireless_l_a_n.go index 6ee1b892..2dfc1505 100644 --- a/netbox/models/wireless_l_a_n.go +++ b/netbox/models/wireless_l_a_n.go @@ -46,6 +46,9 @@ type WirelessLAN struct { // auth type AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -80,6 +83,9 @@ type WirelessLAN struct { // Min Length: 1 Ssid *string `json:"ssid"` + // status + Status *WirelessLANStatus `json:"status,omitempty"` + // tags Tags []*NestedTag `json:"tags"` @@ -131,6 +137,10 @@ func (m *WirelessLAN) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -275,6 +285,25 @@ func (m *WirelessLAN) validateSsid(formats strfmt.Registry) error { return nil } +func (m *WirelessLAN) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + + if m.Status != nil { + if err := m.Status.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") + } + return err + } + } + + return nil +} + func (m *WirelessLAN) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -383,6 +412,10 @@ func (m *WirelessLAN) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateStatus(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -489,6 +522,22 @@ func (m *WirelessLAN) contextValidateLastUpdated(ctx context.Context, formats st return nil } +func (m *WirelessLAN) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + + if m.Status != nil { + if err := m.Status.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("status") + } + return err + } + } + + return nil +} + func (m *WirelessLAN) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { @@ -871,3 +920,158 @@ func (m *WirelessLANAuthType) UnmarshalBinary(b []byte) error { *m = res return nil } + +// WirelessLANStatus Status +// +// swagger:model WirelessLANStatus +type WirelessLANStatus struct { + + // label + // Required: true + // Enum: [Active Reserved Disabled Deprecated] + Label *string `json:"label"` + + // value + // Required: true + // Enum: [active reserved disabled deprecated] + Value *string `json:"value"` +} + +// Validate validates this wireless l a n status +func (m *WirelessLANStatus) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateLabel(formats); err != nil { + res = append(res, err) + } + + if err := m.validateValue(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var wirelessLANStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Active","Reserved","Disabled","Deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + wirelessLANStatusTypeLabelPropEnum = append(wirelessLANStatusTypeLabelPropEnum, v) + } +} + +const ( + + // WirelessLANStatusLabelActive captures enum value "Active" + WirelessLANStatusLabelActive string = "Active" + + // WirelessLANStatusLabelReserved captures enum value "Reserved" + WirelessLANStatusLabelReserved string = "Reserved" + + // WirelessLANStatusLabelDisabled captures enum value "Disabled" + WirelessLANStatusLabelDisabled string = "Disabled" + + // WirelessLANStatusLabelDeprecated captures enum value "Deprecated" + WirelessLANStatusLabelDeprecated string = "Deprecated" +) + +// prop value enum +func (m *WirelessLANStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, wirelessLANStatusTypeLabelPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WirelessLANStatus) validateLabel(formats strfmt.Registry) error { + + if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { + return err + } + + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var wirelessLANStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","reserved","disabled","deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + wirelessLANStatusTypeValuePropEnum = append(wirelessLANStatusTypeValuePropEnum, v) + } +} + +const ( + + // WirelessLANStatusValueActive captures enum value "active" + WirelessLANStatusValueActive string = "active" + + // WirelessLANStatusValueReserved captures enum value "reserved" + WirelessLANStatusValueReserved string = "reserved" + + // WirelessLANStatusValueDisabled captures enum value "disabled" + WirelessLANStatusValueDisabled string = "disabled" + + // WirelessLANStatusValueDeprecated captures enum value "deprecated" + WirelessLANStatusValueDeprecated string = "deprecated" +) + +// prop value enum +func (m *WirelessLANStatus) validateValueEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, wirelessLANStatusTypeValuePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WirelessLANStatus) validateValue(formats strfmt.Registry) error { + + if err := validate.Required("status"+"."+"value", "body", m.Value); err != nil { + return err + } + + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this wireless l a n status based on context it is used +func (m *WirelessLANStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *WirelessLANStatus) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *WirelessLANStatus) UnmarshalBinary(b []byte) error { + var res WirelessLANStatus + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/wireless_link.go b/netbox/models/wireless_link.go index 064b6006..b5d53d1e 100644 --- a/netbox/models/wireless_link.go +++ b/netbox/models/wireless_link.go @@ -46,6 +46,9 @@ type WirelessLink struct { // auth type AuthType *WirelessLinkAuthType `json:"auth_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_a_s_n.go b/netbox/models/writable_a_s_n.go index ae3c109b..65b34a98 100644 --- a/netbox/models/writable_a_s_n.go +++ b/netbox/models/writable_a_s_n.go @@ -43,6 +43,9 @@ type WritableASN struct { // Minimum: 1 Asn *int64 `json:"asn"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_aggregate.go b/netbox/models/writable_aggregate.go index 845f43c1..dba9e228 100644 --- a/netbox/models/writable_aggregate.go +++ b/netbox/models/writable_aggregate.go @@ -35,6 +35,9 @@ import ( // swagger:model WritableAggregate type WritableAggregate struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_cable.go b/netbox/models/writable_cable.go index 7f030b54..28277ac8 100644 --- a/netbox/models/writable_cable.go +++ b/netbox/models/writable_cable.go @@ -47,6 +47,9 @@ type WritableCable struct { // Pattern: ^[0-9a-f]{6}$ Color string `json:"color,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -55,6 +58,10 @@ type WritableCable struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -119,6 +126,10 @@ func (m *WritableCable) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -233,6 +244,18 @@ func (m *WritableCable) validateCreated(formats strfmt.Registry) error { return nil } +func (m *WritableCable) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableCable) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil diff --git a/netbox/models/writable_circuit_termination.go b/netbox/models/writable_circuit_termination.go index 3c5d217e..05c4af1d 100644 --- a/netbox/models/writable_circuit_termination.go +++ b/netbox/models/writable_circuit_termination.go @@ -40,8 +40,8 @@ type WritableCircuitTermination struct { // Read Only: true Occupied *bool `json:"_occupied,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -136,10 +136,6 @@ type WritableCircuitTermination struct { func (m *WritableCircuitTermination) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -194,25 +190,6 @@ func (m *WritableCircuitTermination) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableCircuitTermination) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableCircuitTermination) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -415,10 +392,6 @@ func (m *WritableCircuitTermination) ContextValidate(ctx context.Context, format res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -470,22 +443,6 @@ func (m *WritableCircuitTermination) contextValidateOccupied(ctx context.Context return nil } -func (m *WritableCircuitTermination) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableCircuitTermination) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_cluster.go b/netbox/models/writable_cluster.go index a119df7c..0f754808 100644 --- a/netbox/models/writable_cluster.go +++ b/netbox/models/writable_cluster.go @@ -47,6 +47,10 @@ type WritableCluster struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -56,8 +60,7 @@ type WritableCluster struct { Display string `json:"display,omitempty"` // Group - // Required: true - Group *int64 `json:"group"` + Group *int64 `json:"group,omitempty"` // ID // Read Only: true @@ -75,8 +78,7 @@ type WritableCluster struct { Name *string `json:"name"` // Site - // Required: true - Site *int64 `json:"site"` + Site *int64 `json:"site,omitempty"` // Status // Enum: [planned staging active decommissioning offline] @@ -110,7 +112,7 @@ func (m *WritableCluster) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateGroup(formats); err != nil { + if err := m.validateDescription(formats); err != nil { res = append(res, err) } @@ -122,10 +124,6 @@ func (m *WritableCluster) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateSite(formats); err != nil { - res = append(res, err) - } - if err := m.validateStatus(formats); err != nil { res = append(res, err) } @@ -160,9 +158,12 @@ func (m *WritableCluster) validateCreated(formats strfmt.Registry) error { return nil } -func (m *WritableCluster) validateGroup(formats strfmt.Registry) error { +func (m *WritableCluster) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } - if err := validate.Required("group", "body", m.Group); err != nil { + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { return err } @@ -198,15 +199,6 @@ func (m *WritableCluster) validateName(formats strfmt.Registry) error { return nil } -func (m *WritableCluster) validateSite(formats strfmt.Registry) error { - - if err := validate.Required("site", "body", m.Site); err != nil { - return err - } - - return nil -} - var writableClusterTypeStatusPropEnum []interface{} func init() { diff --git a/netbox/models/writable_console_port.go b/netbox/models/writable_console_port.go index 0001d3da..dc9ff640 100644 --- a/netbox/models/writable_console_port.go +++ b/netbox/models/writable_console_port.go @@ -40,8 +40,8 @@ type WritableConsolePort struct { // Read Only: true Occupied *bool `json:"_occupied,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -146,10 +146,6 @@ type WritableConsolePort struct { func (m *WritableConsolePort) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -200,25 +196,6 @@ func (m *WritableConsolePort) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableConsolePort) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableConsolePort) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -465,10 +442,6 @@ func (m *WritableConsolePort) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -532,22 +505,6 @@ func (m *WritableConsolePort) contextValidateOccupied(ctx context.Context, forma return nil } -func (m *WritableConsolePort) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableConsolePort) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_console_port_template.go b/netbox/models/writable_console_port_template.go index e50b0b61..1fd0d591 100644 --- a/netbox/models/writable_console_port_template.go +++ b/netbox/models/writable_console_port_template.go @@ -45,8 +45,7 @@ type WritableConsolePortTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -68,8 +67,7 @@ type WritableConsolePortTemplate struct { LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -103,10 +101,6 @@ func (m *WritableConsolePortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -115,10 +109,6 @@ func (m *WritableConsolePortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -161,15 +151,6 @@ func (m *WritableConsolePortTemplate) validateDescription(formats strfmt.Registr return nil } -func (m *WritableConsolePortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - func (m *WritableConsolePortTemplate) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -194,15 +175,6 @@ func (m *WritableConsolePortTemplate) validateLastUpdated(formats strfmt.Registr return nil } -func (m *WritableConsolePortTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritableConsolePortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/netbox/models/writable_console_server_port.go b/netbox/models/writable_console_server_port.go index 9da24542..29545dea 100644 --- a/netbox/models/writable_console_server_port.go +++ b/netbox/models/writable_console_server_port.go @@ -40,8 +40,8 @@ type WritableConsoleServerPort struct { // Read Only: true Occupied *bool `json:"_occupied,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -146,10 +146,6 @@ type WritableConsoleServerPort struct { func (m *WritableConsoleServerPort) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -200,25 +196,6 @@ func (m *WritableConsoleServerPort) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableConsoleServerPort) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableConsoleServerPort) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -465,10 +442,6 @@ func (m *WritableConsoleServerPort) ContextValidate(ctx context.Context, formats res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -532,22 +505,6 @@ func (m *WritableConsoleServerPort) contextValidateOccupied(ctx context.Context, return nil } -func (m *WritableConsoleServerPort) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableConsoleServerPort) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_console_server_port_template.go b/netbox/models/writable_console_server_port_template.go index e7d5a243..20e5e367 100644 --- a/netbox/models/writable_console_server_port_template.go +++ b/netbox/models/writable_console_server_port_template.go @@ -45,8 +45,7 @@ type WritableConsoleServerPortTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -68,8 +67,7 @@ type WritableConsoleServerPortTemplate struct { LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -103,10 +101,6 @@ func (m *WritableConsoleServerPortTemplate) Validate(formats strfmt.Registry) er res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -115,10 +109,6 @@ func (m *WritableConsoleServerPortTemplate) Validate(formats strfmt.Registry) er res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -161,15 +151,6 @@ func (m *WritableConsoleServerPortTemplate) validateDescription(formats strfmt.R return nil } -func (m *WritableConsoleServerPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - func (m *WritableConsoleServerPortTemplate) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -194,15 +175,6 @@ func (m *WritableConsoleServerPortTemplate) validateLastUpdated(formats strfmt.R return nil } -func (m *WritableConsoleServerPortTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritableConsoleServerPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/netbox/models/writable_contact.go b/netbox/models/writable_contact.go index 01551d0a..1908cad4 100644 --- a/netbox/models/writable_contact.go +++ b/netbox/models/writable_contact.go @@ -50,6 +50,10 @@ type WritableContact struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -60,8 +64,7 @@ type WritableContact struct { Email strfmt.Email `json:"email,omitempty"` // Group - // Required: true - Group *int64 `json:"group"` + Group *int64 `json:"group,omitempty"` // ID // Read Only: true @@ -112,11 +115,11 @@ func (m *WritableContact) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateEmail(formats); err != nil { + if err := m.validateDescription(formats); err != nil { res = append(res, err) } - if err := m.validateGroup(formats); err != nil { + if err := m.validateEmail(formats); err != nil { res = append(res, err) } @@ -178,25 +181,28 @@ func (m *WritableContact) validateCreated(formats strfmt.Registry) error { return nil } -func (m *WritableContact) validateEmail(formats strfmt.Registry) error { - if swag.IsZero(m.Email) { // not required +func (m *WritableContact) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required return nil } - if err := validate.MaxLength("email", "body", m.Email.String(), 254); err != nil { - return err - } - - if err := validate.FormatOf("email", "body", "email", m.Email.String(), formats); err != nil { + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { return err } return nil } -func (m *WritableContact) validateGroup(formats strfmt.Registry) error { +func (m *WritableContact) validateEmail(formats strfmt.Registry) error { + if swag.IsZero(m.Email) { // not required + return nil + } + + if err := validate.MaxLength("email", "body", m.Email.String(), 254); err != nil { + return err + } - if err := validate.Required("group", "body", m.Group); err != nil { + if err := validate.FormatOf("email", "body", "email", m.Email.String(), formats); err != nil { return err } diff --git a/netbox/models/writable_contact_assignment.go b/netbox/models/writable_contact_assignment.go index 6439eb4d..4d391220 100644 --- a/netbox/models/writable_contact_assignment.go +++ b/netbox/models/writable_contact_assignment.go @@ -72,9 +72,8 @@ type WritableContactAssignment struct { ObjectID *int64 `json:"object_id"` // Priority - // Required: true // Enum: [primary secondary tertiary inactive] - Priority *string `json:"priority"` + Priority string `json:"priority,omitempty"` // Role // Required: true @@ -223,13 +222,12 @@ func (m *WritableContactAssignment) validatePriorityEnum(path, location string, } func (m *WritableContactAssignment) validatePriority(formats strfmt.Registry) error { - - if err := validate.Required("priority", "body", m.Priority); err != nil { - return err + if swag.IsZero(m.Priority) { // not required + return nil } // value enum - if err := m.validatePriorityEnum("priority", "body", *m.Priority); err != nil { + if err := m.validatePriorityEnum("priority", "body", m.Priority); err != nil { return err } diff --git a/netbox/models/writable_contact_group.go b/netbox/models/writable_contact_group.go index 63fad951..81250f28 100644 --- a/netbox/models/writable_contact_group.go +++ b/netbox/models/writable_contact_group.go @@ -75,8 +75,7 @@ type WritableContactGroup struct { Name *string `json:"name"` // Parent - // Required: true - Parent *int64 `json:"parent"` + Parent *int64 `json:"parent,omitempty"` // Slug // Required: true @@ -114,10 +113,6 @@ func (m *WritableContactGroup) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateParent(formats); err != nil { - res = append(res, err) - } - if err := m.validateSlug(formats); err != nil { res = append(res, err) } @@ -189,15 +184,6 @@ func (m *WritableContactGroup) validateName(formats strfmt.Registry) error { return nil } -func (m *WritableContactGroup) validateParent(formats strfmt.Registry) error { - - if err := validate.Required("parent", "body", m.Parent); err != nil { - return err - } - - return nil -} - func (m *WritableContactGroup) validateSlug(formats strfmt.Registry) error { if err := validate.Required("slug", "body", m.Slug); err != nil { diff --git a/netbox/models/writable_custom_field.go b/netbox/models/writable_custom_field.go index 5e7aa203..981dd7f0 100644 --- a/netbox/models/writable_custom_field.go +++ b/netbox/models/writable_custom_field.go @@ -110,10 +110,17 @@ type WritableCustomField struct { // If true, this field is required when creating new objects or editing an existing object. Required bool `json:"required,omitempty"` + // Search weight + // + // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. + // Maximum: 32767 + // Minimum: 0 + SearchWeight *int64 `json:"search_weight,omitempty"` + // Type // // The type of data this custom field holds - // Enum: [text longtext integer boolean date url json select multiselect object multiobject] + // Enum: [text longtext integer decimal boolean date url json select multiselect object multiobject] Type string `json:"type,omitempty"` // UI visibility @@ -147,7 +154,7 @@ type WritableCustomField struct { // Max Length: 500 ValidationRegex string `json:"validation_regex,omitempty"` - // Weight + // Display weight // // Fields with higher weights appear lower in a form. // Maximum: 32767 @@ -195,6 +202,10 @@ func (m *WritableCustomField) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSearchWeight(formats); err != nil { + res = append(res, err) + } + if err := m.validateType(formats); err != nil { res = append(res, err) } @@ -388,11 +399,27 @@ func (m *WritableCustomField) validateName(formats strfmt.Registry) error { return nil } +func (m *WritableCustomField) validateSearchWeight(formats strfmt.Registry) error { + if swag.IsZero(m.SearchWeight) { // not required + return nil + } + + if err := validate.MinimumInt("search_weight", "body", *m.SearchWeight, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("search_weight", "body", *m.SearchWeight, 32767, false); err != nil { + return err + } + + return nil +} + var writableCustomFieldTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["text","longtext","integer","boolean","date","url","json","select","multiselect","object","multiobject"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["text","longtext","integer","decimal","boolean","date","url","json","select","multiselect","object","multiobject"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -411,6 +438,9 @@ const ( // WritableCustomFieldTypeInteger captures enum value "integer" WritableCustomFieldTypeInteger string = "integer" + // WritableCustomFieldTypeDecimal captures enum value "decimal" + WritableCustomFieldTypeDecimal string = "decimal" + // WritableCustomFieldTypeBoolean captures enum value "boolean" WritableCustomFieldTypeBoolean string = "boolean" diff --git a/netbox/models/writable_device_type.go b/netbox/models/writable_device_type.go index d47de26c..eeac9de0 100644 --- a/netbox/models/writable_device_type.go +++ b/netbox/models/writable_device_type.go @@ -51,6 +51,10 @@ type WritableDeviceType struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -123,6 +127,13 @@ type WritableDeviceType struct { // Read Only: true // Format: uri URL strfmt.URI `json:"url,omitempty"` + + // Weight + Weight *float64 `json:"weight,omitempty"` + + // Weight unit + // Enum: [kg g lb oz] + WeightUnit string `json:"weight_unit,omitempty"` } // Validate validates this writable device type @@ -137,6 +148,10 @@ func (m *WritableDeviceType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateFrontImage(formats); err != nil { res = append(res, err) } @@ -181,6 +196,10 @@ func (m *WritableDeviceType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateWeightUnit(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -256,6 +275,18 @@ func (m *WritableDeviceType) validateCreated(formats strfmt.Registry) error { return nil } +func (m *WritableDeviceType) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableDeviceType) validateFrontImage(formats strfmt.Registry) error { if swag.IsZero(m.FrontImage) { // not required return nil @@ -443,6 +474,54 @@ func (m *WritableDeviceType) validateURL(formats strfmt.Registry) error { return nil } +var writableDeviceTypeTypeWeightUnitPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["kg","g","lb","oz"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableDeviceTypeTypeWeightUnitPropEnum = append(writableDeviceTypeTypeWeightUnitPropEnum, v) + } +} + +const ( + + // WritableDeviceTypeWeightUnitKg captures enum value "kg" + WritableDeviceTypeWeightUnitKg string = "kg" + + // WritableDeviceTypeWeightUnitG captures enum value "g" + WritableDeviceTypeWeightUnitG string = "g" + + // WritableDeviceTypeWeightUnitLb captures enum value "lb" + WritableDeviceTypeWeightUnitLb string = "lb" + + // WritableDeviceTypeWeightUnitOz captures enum value "oz" + WritableDeviceTypeWeightUnitOz string = "oz" +) + +// prop value enum +func (m *WritableDeviceType) validateWeightUnitEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableDeviceTypeTypeWeightUnitPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableDeviceType) validateWeightUnit(formats strfmt.Registry) error { + if swag.IsZero(m.WeightUnit) { // not required + return nil + } + + // value enum + if err := m.validateWeightUnitEnum("weight_unit", "body", m.WeightUnit); err != nil { + return err + } + + return nil +} + // ContextValidate validate this writable device type based on the context it is used func (m *WritableDeviceType) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error diff --git a/netbox/models/writable_device_with_config_context.go b/netbox/models/writable_device_with_config_context.go index 167a86e4..2cc79a10 100644 --- a/netbox/models/writable_device_with_config_context.go +++ b/netbox/models/writable_device_with_config_context.go @@ -64,6 +64,10 @@ type WritableDeviceWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device role // Required: true DeviceRole *int64 `json:"device_role"` @@ -77,9 +81,8 @@ type WritableDeviceWithConfigContext struct { Display string `json:"display,omitempty"` // Rack face - // Required: true // Enum: [front rear] - Face *string `json:"face"` + Face string `json:"face,omitempty"` // ID // Read Only: true @@ -97,9 +100,8 @@ type WritableDeviceWithConfigContext struct { Location *int64 `json:"location,omitempty"` // Name - // Required: true // Max Length: 64 - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // parent device ParentDevice *NestedDevice `json:"parent_device,omitempty"` @@ -122,8 +124,7 @@ type WritableDeviceWithConfigContext struct { PrimaryIp6 *int64 `json:"primary_ip6,omitempty"` // Rack - // Required: true - Rack *int64 `json:"rack"` + Rack *int64 `json:"rack,omitempty"` // Serial number // Max Length: 50 @@ -141,8 +142,7 @@ type WritableDeviceWithConfigContext struct { Tags []*NestedTag `json:"tags"` // Tenant - // Required: true - Tenant *int64 `json:"tenant"` + Tenant *int64 `json:"tenant,omitempty"` // Url // Read Only: true @@ -160,8 +160,7 @@ type WritableDeviceWithConfigContext struct { VcPriority *int64 `json:"vc_priority,omitempty"` // Virtual chassis - // Required: true - VirtualChassis *int64 `json:"virtual_chassis"` + VirtualChassis *int64 `json:"virtual_chassis,omitempty"` } // Validate validates this writable device with config context @@ -180,6 +179,10 @@ func (m *WritableDeviceWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDeviceRole(formats); err != nil { res = append(res, err) } @@ -208,10 +211,6 @@ func (m *WritableDeviceWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } - if err := m.validateRack(formats); err != nil { - res = append(res, err) - } - if err := m.validateSerial(formats); err != nil { res = append(res, err) } @@ -228,10 +227,6 @@ func (m *WritableDeviceWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } - if err := m.validateTenant(formats); err != nil { - res = append(res, err) - } - if err := m.validateURL(formats); err != nil { res = append(res, err) } @@ -244,10 +239,6 @@ func (m *WritableDeviceWithConfigContext) Validate(formats strfmt.Registry) erro res = append(res, err) } - if err := m.validateVirtualChassis(formats); err != nil { - res = append(res, err) - } - if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -335,6 +326,18 @@ func (m *WritableDeviceWithConfigContext) validateCreated(formats strfmt.Registr return nil } +func (m *WritableDeviceWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableDeviceWithConfigContext) validateDeviceRole(formats strfmt.Registry) error { if err := validate.Required("device_role", "body", m.DeviceRole); err != nil { @@ -383,13 +386,12 @@ func (m *WritableDeviceWithConfigContext) validateFaceEnum(path, location string } func (m *WritableDeviceWithConfigContext) validateFace(formats strfmt.Registry) error { - - if err := validate.Required("face", "body", m.Face); err != nil { - return err + if swag.IsZero(m.Face) { // not required + return nil } // value enum - if err := m.validateFaceEnum("face", "body", *m.Face); err != nil { + if err := m.validateFaceEnum("face", "body", m.Face); err != nil { return err } @@ -409,9 +411,8 @@ func (m *WritableDeviceWithConfigContext) validateLastUpdated(formats strfmt.Reg } func (m *WritableDeviceWithConfigContext) validateName(formats strfmt.Registry) error { - - if err := validate.Required("name", "body", m.Name); err != nil { - return err + if swag.IsZero(m.Name) { // not required + return nil } if err := validate.MaxLength("name", "body", *m.Name, 64); err != nil { @@ -452,15 +453,6 @@ func (m *WritableDeviceWithConfigContext) validatePosition(formats strfmt.Regist return nil } -func (m *WritableDeviceWithConfigContext) validateRack(formats strfmt.Registry) error { - - if err := validate.Required("rack", "body", m.Rack); err != nil { - return err - } - - return nil -} - func (m *WritableDeviceWithConfigContext) validateSerial(formats strfmt.Registry) error { if swag.IsZero(m.Serial) { // not required return nil @@ -565,15 +557,6 @@ func (m *WritableDeviceWithConfigContext) validateTags(formats strfmt.Registry) return nil } -func (m *WritableDeviceWithConfigContext) validateTenant(formats strfmt.Registry) error { - - if err := validate.Required("tenant", "body", m.Tenant); err != nil { - return err - } - - return nil -} - func (m *WritableDeviceWithConfigContext) validateURL(formats strfmt.Registry) error { if swag.IsZero(m.URL) { // not required return nil @@ -618,15 +601,6 @@ func (m *WritableDeviceWithConfigContext) validateVcPriority(formats strfmt.Regi return nil } -func (m *WritableDeviceWithConfigContext) validateVirtualChassis(formats strfmt.Registry) error { - - if err := validate.Required("virtual_chassis", "body", m.VirtualChassis); err != nil { - return err - } - - return nil -} - // ContextValidate validate this writable device with config context based on the context it is used func (m *WritableDeviceWithConfigContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error diff --git a/netbox/models/writable_front_port.go b/netbox/models/writable_front_port.go index de279dac..dc891f35 100644 --- a/netbox/models/writable_front_port.go +++ b/netbox/models/writable_front_port.go @@ -40,8 +40,8 @@ type WritableFrontPort struct { // Read Only: true Occupied *bool `json:"_occupied,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -139,10 +139,6 @@ type WritableFrontPort struct { func (m *WritableFrontPort) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -201,25 +197,6 @@ func (m *WritableFrontPort) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableFrontPort) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableFrontPort) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -559,10 +536,6 @@ func (m *WritableFrontPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -614,22 +587,6 @@ func (m *WritableFrontPort) contextValidateOccupied(ctx context.Context, formats return nil } -func (m *WritableFrontPort) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableFrontPort) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_front_port_template.go b/netbox/models/writable_front_port_template.go index 37d78a1d..4df9a82d 100644 --- a/netbox/models/writable_front_port_template.go +++ b/netbox/models/writable_front_port_template.go @@ -50,8 +50,7 @@ type WritableFrontPortTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -73,8 +72,7 @@ type WritableFrontPortTemplate struct { LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -122,10 +120,6 @@ func (m *WritableFrontPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -134,10 +128,6 @@ func (m *WritableFrontPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -204,15 +194,6 @@ func (m *WritableFrontPortTemplate) validateDescription(formats strfmt.Registry) return nil } -func (m *WritableFrontPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - func (m *WritableFrontPortTemplate) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -237,15 +218,6 @@ func (m *WritableFrontPortTemplate) validateLastUpdated(formats strfmt.Registry) return nil } -func (m *WritableFrontPortTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritableFrontPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/netbox/models/writable_interface.go b/netbox/models/writable_interface.go index 653eb1a7..071ca05e 100644 --- a/netbox/models/writable_interface.go +++ b/netbox/models/writable_interface.go @@ -43,8 +43,8 @@ type WritableInterface struct { // Bridge interface Bridge *int64 `json:"bridge,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -207,7 +207,7 @@ type WritableInterface struct { // Type // Required: true - // 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 50gbase-x-sfp56 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 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 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 50gbase-x-sfp56 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 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 cisco-stackwise-1t juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Untagged VLAN @@ -218,6 +218,11 @@ type WritableInterface struct { // Format: uri URL strfmt.URI `json:"url,omitempty"` + // vdcs + // Required: true + // Unique: true + Vdcs []int64 `json:"vdcs"` + // VRF Vrf *int64 `json:"vrf,omitempty"` @@ -238,10 +243,6 @@ type WritableInterface struct { func (m *WritableInterface) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -322,6 +323,10 @@ func (m *WritableInterface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateVdcs(formats); err != nil { + res = append(res, err) + } + if err := m.validateWirelessLans(formats); err != nil { res = append(res, err) } @@ -332,25 +337,6 @@ func (m *WritableInterface) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableInterface) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableInterface) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -1388,7 +1374,7 @@ var writableInterfaceTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["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","50gbase-x-sfp56","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","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","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","50gbase-x-sfp56","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","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","cisco-stackwise-1t","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1407,9 +1393,18 @@ const ( // WritableInterfaceTypeLag captures enum value "lag" WritableInterfaceTypeLag string = "lag" + // WritableInterfaceTypeNr100baseDashFx captures enum value "100base-fx" + WritableInterfaceTypeNr100baseDashFx string = "100base-fx" + + // WritableInterfaceTypeNr100baseDashLfx captures enum value "100base-lfx" + WritableInterfaceTypeNr100baseDashLfx string = "100base-lfx" + // WritableInterfaceTypeNr100baseDashTx captures enum value "100base-tx" WritableInterfaceTypeNr100baseDashTx string = "100base-tx" + // WritableInterfaceTypeNr100baseDashT1 captures enum value "100base-t1" + WritableInterfaceTypeNr100baseDashT1 string = "100base-t1" + // WritableInterfaceTypeNr1000baseDasht captures enum value "1000base-t" WritableInterfaceTypeNr1000baseDasht string = "1000base-t" @@ -1482,6 +1477,12 @@ const ( // WritableInterfaceTypeNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" WritableInterfaceTypeNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // WritableInterfaceTypeNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + WritableInterfaceTypeNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // WritableInterfaceTypeNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + WritableInterfaceTypeNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // WritableInterfaceTypeNr1000baseDashKx captures enum value "1000base-kx" WritableInterfaceTypeNr1000baseDashKx string = "1000base-kx" @@ -1677,6 +1678,9 @@ const ( // WritableInterfaceTypeCiscoDashStackwiseDash480 captures enum value "cisco-stackwise-480" WritableInterfaceTypeCiscoDashStackwiseDash480 string = "cisco-stackwise-480" + // WritableInterfaceTypeCiscoDashStackwiseDash1t captures enum value "cisco-stackwise-1t" + WritableInterfaceTypeCiscoDashStackwiseDash1t string = "cisco-stackwise-1t" + // WritableInterfaceTypeJuniperDashVcp captures enum value "juniper-vcp" WritableInterfaceTypeJuniperDashVcp string = "juniper-vcp" @@ -1730,6 +1734,19 @@ func (m *WritableInterface) validateURL(formats strfmt.Registry) error { return nil } +func (m *WritableInterface) validateVdcs(formats strfmt.Registry) error { + + if err := validate.Required("vdcs", "body", m.Vdcs); err != nil { + return err + } + + if err := validate.UniqueItems("vdcs", "body", m.Vdcs); err != nil { + return err + } + + return nil +} + func (m *WritableInterface) validateWirelessLans(formats strfmt.Registry) error { if swag.IsZero(m.WirelessLans) { // not required return nil @@ -1750,10 +1767,6 @@ func (m *WritableInterface) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -1829,22 +1842,6 @@ func (m *WritableInterface) contextValidateOccupied(ctx context.Context, formats return nil } -func (m *WritableInterface) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableInterface) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_interface_template.go b/netbox/models/writable_interface_template.go index 2a91ad7c..eebd1c84 100644 --- a/netbox/models/writable_interface_template.go +++ b/netbox/models/writable_interface_template.go @@ -45,8 +45,7 @@ type WritableInterfaceTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -71,8 +70,7 @@ type WritableInterfaceTemplate struct { MgmtOnly bool `json:"mgmt_only,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -94,7 +92,7 @@ type WritableInterfaceTemplate struct { // Type // Required: true - // 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 50gbase-x-sfp56 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 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-fx 100base-lfx 100base-tx 100base-t1 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 50gbase-x-sfp56 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 800gbase-x-qsfpdd 800gbase-x-osfp 1000base-kx 10gbase-kr 10gbase-kx4 25gbase-kr 40gbase-kr4 50gbase-kr 100gbase-kp4 100gbase-kr2 100gbase-kr4 ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.11ay ieee802.15.1 other-wireless 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-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 cisco-stackwise-1t juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Url @@ -115,10 +113,6 @@ func (m *WritableInterfaceTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -127,10 +121,6 @@ func (m *WritableInterfaceTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -181,15 +171,6 @@ func (m *WritableInterfaceTemplate) validateDescription(formats strfmt.Registry) return nil } -func (m *WritableInterfaceTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - func (m *WritableInterfaceTemplate) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -214,15 +195,6 @@ func (m *WritableInterfaceTemplate) validateLastUpdated(formats strfmt.Registry) return nil } -func (m *WritableInterfaceTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritableInterfaceTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -346,7 +318,7 @@ var writableInterfaceTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["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","50gbase-x-sfp56","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","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-fx","100base-lfx","100base-tx","100base-t1","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","50gbase-x-sfp56","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","800gbase-x-qsfpdd","800gbase-x-osfp","1000base-kx","10gbase-kr","10gbase-kx4","25gbase-kr","40gbase-kr4","50gbase-kr","100gbase-kp4","100gbase-kr2","100gbase-kr4","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.11ay","ieee802.15.1","other-wireless","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-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","cisco-stackwise-1t","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -365,9 +337,18 @@ const ( // WritableInterfaceTemplateTypeLag captures enum value "lag" WritableInterfaceTemplateTypeLag string = "lag" + // WritableInterfaceTemplateTypeNr100baseDashFx captures enum value "100base-fx" + WritableInterfaceTemplateTypeNr100baseDashFx string = "100base-fx" + + // WritableInterfaceTemplateTypeNr100baseDashLfx captures enum value "100base-lfx" + WritableInterfaceTemplateTypeNr100baseDashLfx string = "100base-lfx" + // WritableInterfaceTemplateTypeNr100baseDashTx captures enum value "100base-tx" WritableInterfaceTemplateTypeNr100baseDashTx string = "100base-tx" + // WritableInterfaceTemplateTypeNr100baseDashT1 captures enum value "100base-t1" + WritableInterfaceTemplateTypeNr100baseDashT1 string = "100base-t1" + // WritableInterfaceTemplateTypeNr1000baseDasht captures enum value "1000base-t" WritableInterfaceTemplateTypeNr1000baseDasht string = "1000base-t" @@ -440,6 +421,12 @@ const ( // WritableInterfaceTemplateTypeNr400gbaseDashxDashOsfp captures enum value "400gbase-x-osfp" WritableInterfaceTemplateTypeNr400gbaseDashxDashOsfp string = "400gbase-x-osfp" + // WritableInterfaceTemplateTypeNr800gbaseDashxDashQsfpdd captures enum value "800gbase-x-qsfpdd" + WritableInterfaceTemplateTypeNr800gbaseDashxDashQsfpdd string = "800gbase-x-qsfpdd" + + // WritableInterfaceTemplateTypeNr800gbaseDashxDashOsfp captures enum value "800gbase-x-osfp" + WritableInterfaceTemplateTypeNr800gbaseDashxDashOsfp string = "800gbase-x-osfp" + // WritableInterfaceTemplateTypeNr1000baseDashKx captures enum value "1000base-kx" WritableInterfaceTemplateTypeNr1000baseDashKx string = "1000base-kx" @@ -635,6 +622,9 @@ const ( // WritableInterfaceTemplateTypeCiscoDashStackwiseDash480 captures enum value "cisco-stackwise-480" WritableInterfaceTemplateTypeCiscoDashStackwiseDash480 string = "cisco-stackwise-480" + // WritableInterfaceTemplateTypeCiscoDashStackwiseDash1t captures enum value "cisco-stackwise-1t" + WritableInterfaceTemplateTypeCiscoDashStackwiseDash1t string = "cisco-stackwise-1t" + // WritableInterfaceTemplateTypeJuniperDashVcp captures enum value "juniper-vcp" WritableInterfaceTemplateTypeJuniperDashVcp string = "juniper-vcp" diff --git a/netbox/models/writable_ip_address.go b/netbox/models/writable_ip_address.go index 6cb22518..2393ef0d 100644 --- a/netbox/models/writable_ip_address.go +++ b/netbox/models/writable_ip_address.go @@ -54,6 +54,9 @@ type WritableIPAddress struct { // Assigned object type AssignedObjectType *string `json:"assigned_object_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_ip_range.go b/netbox/models/writable_ip_range.go index 1483f1d2..7fe7cb38 100644 --- a/netbox/models/writable_ip_range.go +++ b/netbox/models/writable_ip_range.go @@ -40,6 +40,9 @@ type WritableIPRange struct { // Read Only: true Children int64 `json:"children,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_l2_v_p_n.go b/netbox/models/writable_l2_v_p_n.go index 677aba22..563af679 100644 --- a/netbox/models/writable_l2_v_p_n.go +++ b/netbox/models/writable_l2_v_p_n.go @@ -36,6 +36,9 @@ import ( // swagger:model WritableL2VPN type WritableL2VPN struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_module.go b/netbox/models/writable_module.go index 62d6efe9..6713f08b 100644 --- a/netbox/models/writable_module.go +++ b/netbox/models/writable_module.go @@ -22,6 +22,7 @@ package models import ( "context" + "encoding/json" "strconv" "github.com/go-openapi/errors" @@ -52,6 +53,10 @@ type WritableModule struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device // Required: true Device *int64 `json:"device"` @@ -81,6 +86,10 @@ type WritableModule struct { // Max Length: 50 Serial string `json:"serial,omitempty"` + // Status + // Enum: [offline active planned staged failed decommissioning] + Status string `json:"status,omitempty"` + // tags Tags []*NestedTag `json:"tags"` @@ -102,6 +111,10 @@ func (m *WritableModule) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDevice(formats); err != nil { res = append(res, err) } @@ -122,6 +135,10 @@ func (m *WritableModule) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -160,6 +177,18 @@ func (m *WritableModule) validateCreated(formats strfmt.Registry) error { return nil } +func (m *WritableModule) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableModule) validateDevice(formats strfmt.Registry) error { if err := validate.Required("device", "body", m.Device); err != nil { @@ -211,6 +240,60 @@ func (m *WritableModule) validateSerial(formats strfmt.Registry) error { return nil } +var writableModuleTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["offline","active","planned","staged","failed","decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableModuleTypeStatusPropEnum = append(writableModuleTypeStatusPropEnum, v) + } +} + +const ( + + // WritableModuleStatusOffline captures enum value "offline" + WritableModuleStatusOffline string = "offline" + + // WritableModuleStatusActive captures enum value "active" + WritableModuleStatusActive string = "active" + + // WritableModuleStatusPlanned captures enum value "planned" + WritableModuleStatusPlanned string = "planned" + + // WritableModuleStatusStaged captures enum value "staged" + WritableModuleStatusStaged string = "staged" + + // WritableModuleStatusFailed captures enum value "failed" + WritableModuleStatusFailed string = "failed" + + // WritableModuleStatusDecommissioning captures enum value "decommissioning" + WritableModuleStatusDecommissioning string = "decommissioning" +) + +// prop value enum +func (m *WritableModule) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableModuleTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableModule) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + + // value enum + if err := m.validateStatusEnum("status", "body", m.Status); err != nil { + return err + } + + return nil +} + func (m *WritableModule) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil diff --git a/netbox/models/writable_module_type.go b/netbox/models/writable_module_type.go index da31c984..80d74ee0 100644 --- a/netbox/models/writable_module_type.go +++ b/netbox/models/writable_module_type.go @@ -22,6 +22,7 @@ package models import ( "context" + "encoding/json" "strconv" "github.com/go-openapi/errors" @@ -46,6 +47,10 @@ type WritableModuleType struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -82,6 +87,13 @@ type WritableModuleType struct { // Read Only: true // Format: uri URL strfmt.URI `json:"url,omitempty"` + + // Weight + Weight *float64 `json:"weight,omitempty"` + + // Weight unit + // Enum: [kg g lb oz] + WeightUnit string `json:"weight_unit,omitempty"` } // Validate validates this writable module type @@ -92,6 +104,10 @@ func (m *WritableModuleType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -116,6 +132,10 @@ func (m *WritableModuleType) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateWeightUnit(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -134,6 +154,18 @@ func (m *WritableModuleType) validateCreated(formats strfmt.Registry) error { return nil } +func (m *WritableModuleType) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableModuleType) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil @@ -222,6 +254,54 @@ func (m *WritableModuleType) validateURL(formats strfmt.Registry) error { return nil } +var writableModuleTypeTypeWeightUnitPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["kg","g","lb","oz"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableModuleTypeTypeWeightUnitPropEnum = append(writableModuleTypeTypeWeightUnitPropEnum, v) + } +} + +const ( + + // WritableModuleTypeWeightUnitKg captures enum value "kg" + WritableModuleTypeWeightUnitKg string = "kg" + + // WritableModuleTypeWeightUnitG captures enum value "g" + WritableModuleTypeWeightUnitG string = "g" + + // WritableModuleTypeWeightUnitLb captures enum value "lb" + WritableModuleTypeWeightUnitLb string = "lb" + + // WritableModuleTypeWeightUnitOz captures enum value "oz" + WritableModuleTypeWeightUnitOz string = "oz" +) + +// prop value enum +func (m *WritableModuleType) validateWeightUnitEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableModuleTypeTypeWeightUnitPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableModuleType) validateWeightUnit(formats strfmt.Registry) error { + if swag.IsZero(m.WeightUnit) { // not required + return nil + } + + // value enum + if err := m.validateWeightUnitEnum("weight_unit", "body", m.WeightUnit); err != nil { + return err + } + + return nil +} + // ContextValidate validate this writable module type based on the context it is used func (m *WritableModuleType) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error diff --git a/netbox/models/writable_power_feed.go b/netbox/models/writable_power_feed.go index bef86b97..3d75bb9c 100644 --- a/netbox/models/writable_power_feed.go +++ b/netbox/models/writable_power_feed.go @@ -45,8 +45,8 @@ type WritablePowerFeed struct { // Minimum: 1 Amperage int64 `json:"amperage,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -78,6 +78,10 @@ type WritablePowerFeed struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -164,15 +168,15 @@ func (m *WritablePowerFeed) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateCable(formats); err != nil { + if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } - if err := m.validateCableEnd(formats); err != nil { + if err := m.validateCreated(formats); err != nil { res = append(res, err) } - if err := m.validateCreated(formats); err != nil { + if err := m.validateDescription(formats); err != nil { res = append(res, err) } @@ -242,43 +246,36 @@ func (m *WritablePowerFeed) validateAmperage(formats strfmt.Registry) error { return nil } -func (m *WritablePowerFeed) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required +func (m *WritablePowerFeed) validateCableEnd(formats strfmt.Registry) error { + if swag.IsZero(m.CableEnd) { // not required return nil } - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } + if err := validate.MinLength("cable_end", "body", m.CableEnd, 1); err != nil { + return err } return nil } -func (m *WritablePowerFeed) validateCableEnd(formats strfmt.Registry) error { - if swag.IsZero(m.CableEnd) { // not required +func (m *WritablePowerFeed) validateCreated(formats strfmt.Registry) error { + if swag.IsZero(m.Created) { // not required return nil } - if err := validate.MinLength("cable_end", "body", m.CableEnd, 1); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } return nil } -func (m *WritablePowerFeed) validateCreated(formats strfmt.Registry) error { - if swag.IsZero(m.Created) { // not required +func (m *WritablePowerFeed) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required return nil } - if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { return err } @@ -575,10 +572,6 @@ func (m *WritablePowerFeed) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -642,22 +635,6 @@ func (m *WritablePowerFeed) contextValidateOccupied(ctx context.Context, formats return nil } -func (m *WritablePowerFeed) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritablePowerFeed) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_power_outlet.go b/netbox/models/writable_power_outlet.go index 21f85899..83d8f6c3 100644 --- a/netbox/models/writable_power_outlet.go +++ b/netbox/models/writable_power_outlet.go @@ -40,8 +40,8 @@ type WritablePowerOutlet struct { // Read Only: true Occupied *bool `json:"_occupied,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -149,10 +149,6 @@ type WritablePowerOutlet struct { func (m *WritablePowerOutlet) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -203,25 +199,6 @@ func (m *WritablePowerOutlet) Validate(formats strfmt.Registry) error { return nil } -func (m *WritablePowerOutlet) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritablePowerOutlet) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -705,10 +682,6 @@ func (m *WritablePowerOutlet) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -772,22 +745,6 @@ func (m *WritablePowerOutlet) contextValidateOccupied(ctx context.Context, forma return nil } -func (m *WritablePowerOutlet) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritablePowerOutlet) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_power_outlet_template.go b/netbox/models/writable_power_outlet_template.go index 7698ef79..3a2bcf52 100644 --- a/netbox/models/writable_power_outlet_template.go +++ b/netbox/models/writable_power_outlet_template.go @@ -45,8 +45,7 @@ type WritablePowerOutletTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -74,8 +73,7 @@ type WritablePowerOutletTemplate struct { LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -112,10 +110,6 @@ func (m *WritablePowerOutletTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateFeedLeg(formats); err != nil { res = append(res, err) } @@ -128,10 +122,6 @@ func (m *WritablePowerOutletTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -174,15 +164,6 @@ func (m *WritablePowerOutletTemplate) validateDescription(formats strfmt.Registr return nil } -func (m *WritablePowerOutletTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - var writablePowerOutletTemplateTypeFeedLegPropEnum []interface{} func init() { @@ -252,15 +233,6 @@ func (m *WritablePowerOutletTemplate) validateLastUpdated(formats strfmt.Registr return nil } -func (m *WritablePowerOutletTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritablePowerOutletTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/netbox/models/writable_power_panel.go b/netbox/models/writable_power_panel.go index b7b2e582..05c29f21 100644 --- a/netbox/models/writable_power_panel.go +++ b/netbox/models/writable_power_panel.go @@ -35,6 +35,9 @@ import ( // swagger:model WritablePowerPanel type WritablePowerPanel struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -43,6 +46,10 @@ type WritablePowerPanel struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -90,6 +97,10 @@ func (m *WritablePowerPanel) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -128,6 +139,18 @@ func (m *WritablePowerPanel) validateCreated(formats strfmt.Registry) error { return nil } +func (m *WritablePowerPanel) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritablePowerPanel) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil diff --git a/netbox/models/writable_power_port.go b/netbox/models/writable_power_port.go index 08a62717..c990b2f8 100644 --- a/netbox/models/writable_power_port.go +++ b/netbox/models/writable_power_port.go @@ -47,8 +47,8 @@ type WritablePowerPort struct { // Minimum: 1 AllocatedDraw *int64 `json:"allocated_draw,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -158,10 +158,6 @@ func (m *WritablePowerPort) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -228,25 +224,6 @@ func (m *WritablePowerPort) validateAllocatedDraw(formats strfmt.Registry) error return nil } -func (m *WritablePowerPort) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritablePowerPort) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -722,10 +699,6 @@ func (m *WritablePowerPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -789,22 +762,6 @@ func (m *WritablePowerPort) contextValidateOccupied(ctx context.Context, formats return nil } -func (m *WritablePowerPort) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritablePowerPort) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_power_port_template.go b/netbox/models/writable_power_port_template.go index d900978e..9c0bcbf0 100644 --- a/netbox/models/writable_power_port_template.go +++ b/netbox/models/writable_power_port_template.go @@ -52,8 +52,7 @@ type WritablePowerPortTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -82,8 +81,7 @@ type WritablePowerPortTemplate struct { MaximumDraw *int64 `json:"maximum_draw,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -121,10 +119,6 @@ func (m *WritablePowerPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -137,10 +131,6 @@ func (m *WritablePowerPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -199,15 +189,6 @@ func (m *WritablePowerPortTemplate) validateDescription(formats strfmt.Registry) return nil } -func (m *WritablePowerPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - func (m *WritablePowerPortTemplate) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -248,15 +229,6 @@ func (m *WritablePowerPortTemplate) validateMaximumDraw(formats strfmt.Registry) return nil } -func (m *WritablePowerPortTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritablePowerPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/netbox/models/writable_prefix.go b/netbox/models/writable_prefix.go index 2ac96746..5377e98e 100644 --- a/netbox/models/writable_prefix.go +++ b/netbox/models/writable_prefix.go @@ -44,6 +44,9 @@ type WritablePrefix struct { // Read Only: true Children int64 `json:"children,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_provider.go b/netbox/models/writable_provider.go index da77eb88..60dc8e5d 100644 --- a/netbox/models/writable_provider.go +++ b/netbox/models/writable_provider.go @@ -39,16 +39,6 @@ type WritableProvider struct { // Max Length: 30 Account string `json:"account,omitempty"` - // Admin contact - AdminContact string `json:"admin_contact,omitempty"` - - // ASN - // - // 32-bit autonomous system number - // Maximum: 4.294967295e+09 - // Minimum: 1 - Asn *int64 `json:"asn,omitempty"` - // asns // Unique: true Asns []int64 `json:"asns"` @@ -68,6 +58,10 @@ type WritableProvider struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -87,14 +81,6 @@ type WritableProvider struct { // Min Length: 1 Name *string `json:"name"` - // NOC contact - NocContact string `json:"noc_contact,omitempty"` - - // Portal URL - // Max Length: 200 - // Format: uri - PortalURL strfmt.URI `json:"portal_url,omitempty"` - // Slug // Required: true // Max Length: 100 @@ -119,10 +105,6 @@ func (m *WritableProvider) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateAsn(formats); err != nil { - res = append(res, err) - } - if err := m.validateAsns(formats); err != nil { res = append(res, err) } @@ -131,15 +113,15 @@ func (m *WritableProvider) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateLastUpdated(formats); err != nil { + if err := m.validateDescription(formats); err != nil { res = append(res, err) } - if err := m.validateName(formats); err != nil { + if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } - if err := m.validatePortalURL(formats); err != nil { + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -173,40 +155,36 @@ func (m *WritableProvider) validateAccount(formats strfmt.Registry) error { return nil } -func (m *WritableProvider) validateAsn(formats strfmt.Registry) error { - if swag.IsZero(m.Asn) { // not required +func (m *WritableProvider) validateAsns(formats strfmt.Registry) error { + if swag.IsZero(m.Asns) { // not required return nil } - if err := validate.MinimumInt("asn", "body", *m.Asn, 1, false); err != nil { - return err - } - - if err := validate.MaximumInt("asn", "body", *m.Asn, 4.294967295e+09, false); err != nil { + if err := validate.UniqueItems("asns", "body", m.Asns); err != nil { return err } return nil } -func (m *WritableProvider) validateAsns(formats strfmt.Registry) error { - if swag.IsZero(m.Asns) { // not required +func (m *WritableProvider) validateCreated(formats strfmt.Registry) error { + if swag.IsZero(m.Created) { // not required return nil } - if err := validate.UniqueItems("asns", "body", m.Asns); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } return nil } -func (m *WritableProvider) validateCreated(formats strfmt.Registry) error { - if swag.IsZero(m.Created) { // not required +func (m *WritableProvider) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required return nil } - if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { return err } @@ -242,22 +220,6 @@ func (m *WritableProvider) validateName(formats strfmt.Registry) error { return nil } -func (m *WritableProvider) validatePortalURL(formats strfmt.Registry) error { - if swag.IsZero(m.PortalURL) { // not required - return nil - } - - if err := validate.MaxLength("portal_url", "body", m.PortalURL.String(), 200); err != nil { - return err - } - - if err := validate.FormatOf("portal_url", "body", "uri", m.PortalURL.String(), formats); err != nil { - return err - } - - return nil -} - func (m *WritableProvider) validateSlug(formats strfmt.Registry) error { if err := validate.Required("slug", "body", m.Slug); err != nil { diff --git a/netbox/models/writable_rack.go b/netbox/models/writable_rack.go index 9ff9a09c..723f0b7f 100644 --- a/netbox/models/writable_rack.go +++ b/netbox/models/writable_rack.go @@ -58,6 +58,10 @@ type WritableRack struct { // Units are numbered top-to-bottom DescUnits bool `json:"desc_units,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -80,8 +84,21 @@ type WritableRack struct { LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` // Location - // Required: true - Location *int64 `json:"location"` + Location *int64 `json:"location,omitempty"` + + // Max weight + // + // Maximum load capacity for the rack + // Maximum: 2.147483647e+09 + // Minimum: 0 + MaxWeight *int64 `json:"max_weight,omitempty"` + + // Mounting depth + // + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + // Maximum: 32767 + // Minimum: 0 + MountingDepth *int64 `json:"mounting_depth,omitempty"` // Name // Required: true @@ -150,6 +167,13 @@ type WritableRack struct { // Format: uri URL strfmt.URI `json:"url,omitempty"` + // Weight + Weight *float64 `json:"weight,omitempty"` + + // Weight unit + // Enum: [kg g lb oz] + WeightUnit string `json:"weight_unit,omitempty"` + // Width // // Rail-to-rail width @@ -169,6 +193,10 @@ func (m *WritableRack) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateFacilityID(formats); err != nil { res = append(res, err) } @@ -177,7 +205,11 @@ func (m *WritableRack) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateLocation(formats); err != nil { + if err := m.validateMaxWeight(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMountingDepth(formats); err != nil { res = append(res, err) } @@ -225,6 +257,10 @@ func (m *WritableRack) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateWeightUnit(formats); err != nil { + res = append(res, err) + } + if err := m.validateWidth(formats); err != nil { res = append(res, err) } @@ -259,6 +295,18 @@ func (m *WritableRack) validateCreated(formats strfmt.Registry) error { return nil } +func (m *WritableRack) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableRack) validateFacilityID(formats strfmt.Registry) error { if swag.IsZero(m.FacilityID) { // not required return nil @@ -283,9 +331,32 @@ func (m *WritableRack) validateLastUpdated(formats strfmt.Registry) error { return nil } -func (m *WritableRack) validateLocation(formats strfmt.Registry) error { +func (m *WritableRack) validateMaxWeight(formats strfmt.Registry) error { + if swag.IsZero(m.MaxWeight) { // not required + return nil + } + + if err := validate.MinimumInt("max_weight", "body", *m.MaxWeight, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("max_weight", "body", *m.MaxWeight, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + +func (m *WritableRack) validateMountingDepth(formats strfmt.Registry) error { + if swag.IsZero(m.MountingDepth) { // not required + return nil + } + + if err := validate.MinimumInt("mounting_depth", "body", *m.MountingDepth, 0, false); err != nil { + return err + } - if err := validate.Required("location", "body", m.Location); err != nil { + if err := validate.MaximumInt("mounting_depth", "body", *m.MountingDepth, 32767, false); err != nil { return err } @@ -566,6 +637,54 @@ func (m *WritableRack) validateURL(formats strfmt.Registry) error { return nil } +var writableRackTypeWeightUnitPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["kg","g","lb","oz"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableRackTypeWeightUnitPropEnum = append(writableRackTypeWeightUnitPropEnum, v) + } +} + +const ( + + // WritableRackWeightUnitKg captures enum value "kg" + WritableRackWeightUnitKg string = "kg" + + // WritableRackWeightUnitG captures enum value "g" + WritableRackWeightUnitG string = "g" + + // WritableRackWeightUnitLb captures enum value "lb" + WritableRackWeightUnitLb string = "lb" + + // WritableRackWeightUnitOz captures enum value "oz" + WritableRackWeightUnitOz string = "oz" +) + +// prop value enum +func (m *WritableRack) validateWeightUnitEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableRackTypeWeightUnitPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableRack) validateWeightUnit(formats strfmt.Registry) error { + if swag.IsZero(m.WeightUnit) { // not required + return nil + } + + // value enum + if err := m.validateWeightUnitEnum("weight_unit", "body", m.WeightUnit); err != nil { + return err + } + + return nil +} + var writableRackTypeWidthPropEnum []interface{} func init() { diff --git a/netbox/models/writable_rack_reservation.go b/netbox/models/writable_rack_reservation.go index 54cc1ed5..27a30a3c 100644 --- a/netbox/models/writable_rack_reservation.go +++ b/netbox/models/writable_rack_reservation.go @@ -35,6 +35,9 @@ import ( // swagger:model WritableRackReservation type WritableRackReservation struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_rear_port.go b/netbox/models/writable_rear_port.go index e9f5dee3..341c3342 100644 --- a/netbox/models/writable_rear_port.go +++ b/netbox/models/writable_rear_port.go @@ -40,8 +40,8 @@ type WritableRearPort struct { // Read Only: true Occupied *bool `json:"_occupied,omitempty"` - // cable - Cable *NestedCable `json:"cable,omitempty"` + // Cable + Cable *int64 `json:"cable,omitempty"` // Cable end // Read Only: true @@ -135,10 +135,6 @@ type WritableRearPort struct { func (m *WritableRearPort) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateCable(formats); err != nil { - res = append(res, err) - } - if err := m.validateCableEnd(formats); err != nil { res = append(res, err) } @@ -193,25 +189,6 @@ func (m *WritableRearPort) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableRearPort) validateCable(formats strfmt.Registry) error { - if swag.IsZero(m.Cable) { // not required - return nil - } - - if m.Cable != nil { - if err := m.Cable.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableRearPort) validateCableEnd(formats strfmt.Registry) error { if swag.IsZero(m.CableEnd) { // not required return nil @@ -542,10 +519,6 @@ func (m *WritableRearPort) ContextValidate(ctx context.Context, formats strfmt.R res = append(res, err) } - if err := m.contextValidateCable(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateCableEnd(ctx, formats); err != nil { res = append(res, err) } @@ -597,22 +570,6 @@ func (m *WritableRearPort) contextValidateOccupied(ctx context.Context, formats return nil } -func (m *WritableRearPort) contextValidateCable(ctx context.Context, formats strfmt.Registry) error { - - if m.Cable != nil { - if err := m.Cable.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("cable") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("cable") - } - return err - } - } - - return nil -} - func (m *WritableRearPort) contextValidateCableEnd(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "cable_end", "body", string(m.CableEnd)); err != nil { diff --git a/netbox/models/writable_rear_port_template.go b/netbox/models/writable_rear_port_template.go index b3f43e4f..9df286b3 100644 --- a/netbox/models/writable_rear_port_template.go +++ b/netbox/models/writable_rear_port_template.go @@ -50,8 +50,7 @@ type WritableRearPortTemplate struct { Description string `json:"description,omitempty"` // Device type - // Required: true - DeviceType *int64 `json:"device_type"` + DeviceType *int64 `json:"device_type,omitempty"` // Display // Read Only: true @@ -73,8 +72,7 @@ type WritableRearPortTemplate struct { LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` // Module type - // Required: true - ModuleType *int64 `json:"module_type"` + ModuleType *int64 `json:"module_type,omitempty"` // Name // @@ -118,10 +116,6 @@ func (m *WritableRearPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateDeviceType(formats); err != nil { - res = append(res, err) - } - if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -130,10 +124,6 @@ func (m *WritableRearPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateModuleType(formats); err != nil { - res = append(res, err) - } - if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -196,15 +186,6 @@ func (m *WritableRearPortTemplate) validateDescription(formats strfmt.Registry) return nil } -func (m *WritableRearPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err - } - - return nil -} - func (m *WritableRearPortTemplate) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -229,15 +210,6 @@ func (m *WritableRearPortTemplate) validateLastUpdated(formats strfmt.Registry) return nil } -func (m *WritableRearPortTemplate) validateModuleType(formats strfmt.Registry) error { - - if err := validate.Required("module_type", "body", m.ModuleType); err != nil { - return err - } - - return nil -} - func (m *WritableRearPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/netbox/models/writable_route_target.go b/netbox/models/writable_route_target.go index cbf6d067..63f5b508 100644 --- a/netbox/models/writable_route_target.go +++ b/netbox/models/writable_route_target.go @@ -35,6 +35,9 @@ import ( // swagger:model WritableRouteTarget type WritableRouteTarget struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_service.go b/netbox/models/writable_service.go index 54d69415..7f85678d 100644 --- a/netbox/models/writable_service.go +++ b/netbox/models/writable_service.go @@ -36,6 +36,9 @@ import ( // swagger:model WritableService type WritableService struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_service_template.go b/netbox/models/writable_service_template.go index 3acc1756..fcc8777f 100644 --- a/netbox/models/writable_service_template.go +++ b/netbox/models/writable_service_template.go @@ -36,6 +36,9 @@ import ( // swagger:model WritableServiceTemplate type WritableServiceTemplate struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_v_l_a_n.go b/netbox/models/writable_v_l_a_n.go index 7978cff0..0c0c06f5 100644 --- a/netbox/models/writable_v_l_a_n.go +++ b/netbox/models/writable_v_l_a_n.go @@ -36,6 +36,9 @@ import ( // swagger:model WritableVLAN type WritableVLAN struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -53,8 +56,7 @@ type WritableVLAN struct { Display string `json:"display,omitempty"` // Group - // Required: true - Group *int64 `json:"group"` + Group *int64 `json:"group,omitempty"` // ID // Read Only: true @@ -119,10 +121,6 @@ func (m *WritableVLAN) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateGroup(formats); err != nil { - res = append(res, err) - } - if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -177,15 +175,6 @@ func (m *WritableVLAN) validateDescription(formats strfmt.Registry) error { return nil } -func (m *WritableVLAN) validateGroup(formats strfmt.Registry) error { - - if err := validate.Required("group", "body", m.Group); err != nil { - return err - } - - return nil -} - func (m *WritableVLAN) validateLastUpdated(formats strfmt.Registry) error { if swag.IsZero(m.LastUpdated) { // not required return nil diff --git a/netbox/models/writable_v_r_f.go b/netbox/models/writable_v_r_f.go index 3ed7c3a9..91a3efb9 100644 --- a/netbox/models/writable_v_r_f.go +++ b/netbox/models/writable_v_r_f.go @@ -35,6 +35,9 @@ import ( // swagger:model WritableVRF type WritableVRF struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/models/writable_virtual_chassis.go b/netbox/models/writable_virtual_chassis.go index 127054f2..ccba2063 100644 --- a/netbox/models/writable_virtual_chassis.go +++ b/netbox/models/writable_virtual_chassis.go @@ -35,6 +35,9 @@ import ( // swagger:model WritableVirtualChassis type WritableVirtualChassis struct { + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -43,6 +46,10 @@ type WritableVirtualChassis struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` @@ -90,6 +97,10 @@ func (m *WritableVirtualChassis) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDomain(formats); err != nil { res = append(res, err) } @@ -128,6 +139,18 @@ func (m *WritableVirtualChassis) validateCreated(formats strfmt.Registry) error return nil } +func (m *WritableVirtualChassis) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableVirtualChassis) validateDomain(formats strfmt.Registry) error { if swag.IsZero(m.Domain) { // not required return nil diff --git a/netbox/models/writable_virtual_device_context.go b/netbox/models/writable_virtual_device_context.go new file mode 100644 index 00000000..f0afefdc --- /dev/null +++ b/netbox/models/writable_virtual_device_context.go @@ -0,0 +1,450 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright (c) 2020 Samuel Mutel <12967891+smutel@users.noreply.github.com> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// WritableVirtualDeviceContext writable virtual device context +// +// swagger:model WritableVirtualDeviceContext +type WritableVirtualDeviceContext struct { + + // Comments + Comments string `json:"comments,omitempty"` + + // Created + // Read Only: true + // Format: date-time + Created *strfmt.DateTime `json:"created,omitempty"` + + // Custom fields + CustomFields interface{} `json:"custom_fields,omitempty"` + + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + + // Device + Device *int64 `json:"device,omitempty"` + + // Display + // Read Only: true + Display string `json:"display,omitempty"` + + // ID + // Read Only: true + ID int64 `json:"id,omitempty"` + + // Identifier + // + // Numeric identifier unique to the parent device + // Maximum: 32767 + // Minimum: 0 + Identifier *int64 `json:"identifier,omitempty"` + + // Interface count + // Read Only: true + InterfaceCount int64 `json:"interface_count,omitempty"` + + // Last updated + // Read Only: true + // Format: date-time + LastUpdated *strfmt.DateTime `json:"last_updated,omitempty"` + + // Name + // Required: true + // Max Length: 64 + // Min Length: 1 + Name *string `json:"name"` + + // Primary ip + // Read Only: true + PrimaryIP string `json:"primary_ip,omitempty"` + + // Primary IPv4 + PrimaryIp4 *int64 `json:"primary_ip4,omitempty"` + + // Primary IPv6 + PrimaryIp6 *int64 `json:"primary_ip6,omitempty"` + + // Status + // Required: true + // Enum: [active planned offline] + Status *string `json:"status"` + + // tags + Tags []*NestedTag `json:"tags"` + + // Tenant + Tenant *int64 `json:"tenant,omitempty"` + + // Url + // Read Only: true + // Format: uri + URL strfmt.URI `json:"url,omitempty"` +} + +// Validate validates this writable virtual device context +func (m *WritableVirtualDeviceContext) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCreated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + + if err := m.validateIdentifier(formats); err != nil { + res = append(res, err) + } + + if err := m.validateLastUpdated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTags(formats); err != nil { + res = append(res, err) + } + + if err := m.validateURL(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *WritableVirtualDeviceContext) validateCreated(formats strfmt.Registry) error { + if swag.IsZero(m.Created) { // not required + return nil + } + + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) validateIdentifier(formats strfmt.Registry) error { + if swag.IsZero(m.Identifier) { // not required + return nil + } + + if err := validate.MinimumInt("identifier", "body", *m.Identifier, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("identifier", "body", *m.Identifier, 32767, false); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) validateLastUpdated(formats strfmt.Registry) error { + if swag.IsZero(m.LastUpdated) { // not required + return nil + } + + if err := validate.FormatOf("last_updated", "body", "date-time", m.LastUpdated.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) validateName(formats strfmt.Registry) error { + + if err := validate.Required("name", "body", m.Name); err != nil { + return err + } + + if err := validate.MinLength("name", "body", *m.Name, 1); err != nil { + return err + } + + if err := validate.MaxLength("name", "body", *m.Name, 64); err != nil { + return err + } + + return nil +} + +var writableVirtualDeviceContextTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","planned","offline"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableVirtualDeviceContextTypeStatusPropEnum = append(writableVirtualDeviceContextTypeStatusPropEnum, v) + } +} + +const ( + + // WritableVirtualDeviceContextStatusActive captures enum value "active" + WritableVirtualDeviceContextStatusActive string = "active" + + // WritableVirtualDeviceContextStatusPlanned captures enum value "planned" + WritableVirtualDeviceContextStatusPlanned string = "planned" + + // WritableVirtualDeviceContextStatusOffline captures enum value "offline" + WritableVirtualDeviceContextStatusOffline string = "offline" +) + +// prop value enum +func (m *WritableVirtualDeviceContext) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableVirtualDeviceContextTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableVirtualDeviceContext) validateStatus(formats strfmt.Registry) error { + + if err := validate.Required("status", "body", m.Status); err != nil { + return err + } + + // value enum + if err := m.validateStatusEnum("status", "body", *m.Status); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) validateTags(formats strfmt.Registry) error { + if swag.IsZero(m.Tags) { // not required + return nil + } + + for i := 0; i < len(m.Tags); i++ { + if swag.IsZero(m.Tags[i]) { // not required + continue + } + + if m.Tags[i] != nil { + if err := m.Tags[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *WritableVirtualDeviceContext) validateURL(formats strfmt.Registry) error { + if swag.IsZero(m.URL) { // not required + return nil + } + + if err := validate.FormatOf("url", "body", "uri", m.URL.String(), formats); err != nil { + return err + } + + return nil +} + +// ContextValidate validate this writable virtual device context based on the context it is used +func (m *WritableVirtualDeviceContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCreated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateDisplay(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateID(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateInterfaceCount(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateLastUpdated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePrimaryIP(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTags(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateURL(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "created", "body", m.Created); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateDisplay(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "display", "body", string(m.Display)); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateID(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "id", "body", int64(m.ID)); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateInterfaceCount(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "interface_count", "body", int64(m.InterfaceCount)); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateLastUpdated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "last_updated", "body", m.LastUpdated); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidatePrimaryIP(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "primary_ip", "body", string(m.PrimaryIP)); err != nil { + return err + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Tags); i++ { + + if m.Tags[i] != nil { + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *WritableVirtualDeviceContext) contextValidateURL(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "url", "body", strfmt.URI(m.URL)); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *WritableVirtualDeviceContext) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *WritableVirtualDeviceContext) UnmarshalBinary(b []byte) error { + var res WritableVirtualDeviceContext + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/netbox/models/writable_virtual_machine_with_config_context.go b/netbox/models/writable_virtual_machine_with_config_context.go index ef086351..37f2fc45 100644 --- a/netbox/models/writable_virtual_machine_with_config_context.go +++ b/netbox/models/writable_virtual_machine_with_config_context.go @@ -54,6 +54,10 @@ type WritableVirtualMachineWithConfigContext struct { // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device Device *int64 `json:"device,omitempty"` @@ -136,6 +140,10 @@ func (m *WritableVirtualMachineWithConfigContext) Validate(formats strfmt.Regist res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateDisk(formats); err != nil { res = append(res, err) } @@ -186,6 +194,18 @@ func (m *WritableVirtualMachineWithConfigContext) validateCreated(formats strfmt return nil } +func (m *WritableVirtualMachineWithConfigContext) validateDescription(formats strfmt.Registry) error { + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", m.Description, 200); err != nil { + return err + } + + return nil +} + func (m *WritableVirtualMachineWithConfigContext) validateDisk(formats strfmt.Registry) error { if swag.IsZero(m.Disk) { // not required return nil diff --git a/netbox/models/writable_wireless_l_a_n.go b/netbox/models/writable_wireless_l_a_n.go index 4b3331e0..5f93503d 100644 --- a/netbox/models/writable_wireless_l_a_n.go +++ b/netbox/models/writable_wireless_l_a_n.go @@ -48,6 +48,9 @@ type WritableWirelessLAN struct { // Enum: [open wep wpa-personal wpa-enterprise] AuthType string `json:"auth_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time @@ -82,6 +85,10 @@ type WritableWirelessLAN struct { // Min Length: 1 Ssid *string `json:"ssid"` + // Status + // Enum: [active reserved disabled deprecated] + Status string `json:"status,omitempty"` + // tags Tags []*NestedTag `json:"tags"` @@ -129,6 +136,10 @@ func (m *WritableWirelessLAN) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateStatus(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -301,6 +312,54 @@ func (m *WritableWirelessLAN) validateSsid(formats strfmt.Registry) error { return nil } +var writableWirelessLANTypeStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","reserved","disabled","deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableWirelessLANTypeStatusPropEnum = append(writableWirelessLANTypeStatusPropEnum, v) + } +} + +const ( + + // WritableWirelessLANStatusActive captures enum value "active" + WritableWirelessLANStatusActive string = "active" + + // WritableWirelessLANStatusReserved captures enum value "reserved" + WritableWirelessLANStatusReserved string = "reserved" + + // WritableWirelessLANStatusDisabled captures enum value "disabled" + WritableWirelessLANStatusDisabled string = "disabled" + + // WritableWirelessLANStatusDeprecated captures enum value "deprecated" + WritableWirelessLANStatusDeprecated string = "deprecated" +) + +// prop value enum +func (m *WritableWirelessLAN) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableWirelessLANTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableWirelessLAN) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + + // value enum + if err := m.validateStatusEnum("status", "body", m.Status); err != nil { + return err + } + + return nil +} + func (m *WritableWirelessLAN) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil diff --git a/netbox/models/writable_wireless_l_a_n_group.go b/netbox/models/writable_wireless_l_a_n_group.go index 67f5a590..383e175e 100644 --- a/netbox/models/writable_wireless_l_a_n_group.go +++ b/netbox/models/writable_wireless_l_a_n_group.go @@ -71,8 +71,7 @@ type WritableWirelessLANGroup struct { Name *string `json:"name"` // Parent - // Required: true - Parent *int64 `json:"parent"` + Parent *int64 `json:"parent,omitempty"` // Slug // Required: true @@ -114,10 +113,6 @@ func (m *WritableWirelessLANGroup) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateParent(formats); err != nil { - res = append(res, err) - } - if err := m.validateSlug(formats); err != nil { res = append(res, err) } @@ -189,15 +184,6 @@ func (m *WritableWirelessLANGroup) validateName(formats strfmt.Registry) error { return nil } -func (m *WritableWirelessLANGroup) validateParent(formats strfmt.Registry) error { - - if err := validate.Required("parent", "body", m.Parent); err != nil { - return err - } - - return nil -} - func (m *WritableWirelessLANGroup) validateSlug(formats strfmt.Registry) error { if err := validate.Required("slug", "body", m.Slug); err != nil { diff --git a/netbox/models/writable_wireless_link.go b/netbox/models/writable_wireless_link.go index 5a8197af..e3c850ba 100644 --- a/netbox/models/writable_wireless_link.go +++ b/netbox/models/writable_wireless_link.go @@ -48,6 +48,9 @@ type WritableWirelessLink struct { // Enum: [open wep wpa-personal wpa-enterprise] AuthType string `json:"auth_type,omitempty"` + // Comments + Comments string `json:"comments,omitempty"` + // Created // Read Only: true // Format: date-time diff --git a/netbox/swagger-v3.3.10.json b/netbox/swagger-v3.4.10.json similarity index 94% rename from netbox/swagger-v3.3.10.json rename to netbox/swagger-v3.4.10.json index 79fbc96a..40de74fe 100644 --- a/netbox/swagger-v3.3.10.json +++ b/netbox/swagger-v3.4.10.json @@ -4,6 +4,10 @@ "definitions" : { "Aggregate" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -101,6 +105,10 @@ "title" : "ASN", "type" : "integer" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -228,6 +236,10 @@ "title" : "Color", "type" : "string" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -240,6 +252,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -545,6 +562,11 @@ }, "CircuitCircuitTermination" : { "properties" : { + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -800,6 +822,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_count" : { "readOnly" : true, "title" : "Device count", @@ -1832,6 +1859,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -2272,6 +2304,13 @@ "title" : "Required", "type" : "boolean" }, + "search_weight" : { + "description" : "Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.", + "maximum" : 32767, + "minimum" : 0, + "title" : "Search weight", + "type" : "integer" + }, "type" : { "properties" : { "label" : { @@ -2279,6 +2318,7 @@ "Text", "Text (long)", "Integer", + "Decimal", "Boolean (true/false)", "Date", "URL", @@ -2295,6 +2335,7 @@ "text", "longtext", "integer", + "decimal", "boolean", "date", "url", @@ -2372,7 +2413,7 @@ "description" : "Fields with higher weights appear lower in a form.", "maximum" : 32767, "minimum" : 0, - "title" : "Weight", + "title" : "Display weight", "type" : "integer" } }, @@ -2407,9 +2448,10 @@ "title" : "Button class", "type" : "string" }, - "content_type" : { - "title" : "Content type", - "type" : "string" + "content_types" : { + "items" : { "type" : "string" }, + "type" : "array", + "uniqueItems" : true }, "created" : { "format" : "date-time", @@ -2482,7 +2524,7 @@ } }, "required" : [ - "content_type", + "content_types", "name", "link_text", "link_url" @@ -2549,6 +2591,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_role" : { "$ref" : "#/definitions/NestedDeviceRole" }, "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, "display" : { @@ -2685,7 +2732,6 @@ "virtual_chassis" : { "$ref" : "#/definitions/NestedVirtualChassis" } }, "required" : [ - "name", "device_type", "device_role", "site" @@ -2966,6 +3012,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_count" : { "readOnly" : true, "title" : "Device count", @@ -3066,6 +3117,40 @@ "minimum" : 0, "title" : "Position (U)", "type" : "number" + }, + "weight" : { + "format" : "decimal", + "title" : "Weight", + "type" : "number", + "x-nullable" : true + }, + "weight_unit" : { + "properties" : { + "label" : { + "enum" : [ + "Kilograms", + "Grams", + "Pounds", + "Ounces" + ], + "type" : "string" + }, + "value" : { + "enum" : [ + "kg", + "g", + "lb", + "oz" + ], + "type" : "string" + } + }, + "required" : [ + "label", + "value" + ], + "title" : "Weight unit", + "type" : "object" } }, "required" : [ @@ -3140,6 +3225,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_role" : { "$ref" : "#/definitions/NestedDeviceRole" }, "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, "display" : { @@ -3276,7 +3366,6 @@ "virtual_chassis" : { "$ref" : "#/definitions/NestedVirtualChassis" } }, "required" : [ - "name", "device_type", "device_role", "site" @@ -3290,9 +3379,10 @@ "title" : "As attachment", "type" : "boolean" }, - "content_type" : { - "title" : "Content type", - "type" : "string" + "content_types" : { + "items" : { "type" : "string" }, + "type" : "array", + "uniqueItems" : true }, "created" : { "format" : "date-time", @@ -3330,7 +3420,7 @@ "x-nullable" : true }, "mime_type" : { - "description" : "Defaults to text/plain", + "description" : "Defaults to text/plain; charset=utf-8", "maxLength" : 50, "title" : "MIME type", "type" : "string" @@ -3355,7 +3445,7 @@ } }, "required" : [ - "content_type", + "content_types", "name", "template_code" ], @@ -3376,6 +3466,10 @@ "title" : "Authentication type", "type" : "string" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -3421,6 +3515,11 @@ "type" : "string", "x-nullable" : true }, + "name" : { + "maxLength" : 100, + "title" : "Name", + "type" : "string" + }, "protocol" : { "enum" : [ "vrrp2", @@ -3598,7 +3697,6 @@ }, "rear_port" : { "$ref" : "#/definitions/FrontPortRearPort" }, "rear_port_position" : { - "default" : 1, "maximum" : 1024, "minimum" : 1, "title" : "Rear port position", @@ -3736,6 +3834,11 @@ }, "FrontPortRearPort" : { "properties" : { + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -3822,7 +3925,6 @@ }, "rear_port" : { "$ref" : "#/definitions/NestedRearPortTemplate" }, "rear_port_position" : { - "default" : 1, "maximum" : 1024, "minimum" : 1, "title" : "Rear port position", @@ -4804,7 +4906,10 @@ "Virtual", "Bridge", "Link Aggregation Group (LAG)", + "100BASE-FX (10/100ME FIBER)", + "100BASE-LFX (10/100ME FIBER)", "100BASE-TX (10/100ME)", + "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", @@ -4829,6 +4934,8 @@ "QSFP56 (200GE)", "QSFP-DD (400GE)", "OSFP (400GE)", + "QSFP-DD (800GE)", + "OSFP (800GE)", "1000BASE-KX (1GE)", "10GBASE-KR (10GE)", "10GBASE-KX4 (10GE)", @@ -4894,6 +5001,7 @@ "Cisco StackWise-160", "Cisco StackWise-320", "Cisco StackWise-480", + "Cisco StackWise-1T", "Juniper VCP", "Extreme SummitStack", "Extreme SummitStack-128", @@ -4908,7 +5016,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -4933,6 +5044,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -4998,6 +5111,7 @@ "cisco-stackwise-160", "cisco-stackwise-320", "cisco-stackwise-480", + "cisco-stackwise-1t", "juniper-vcp", "extreme-summitstack", "extreme-summitstack-128", @@ -5022,6 +5136,11 @@ "title" : "Url", "type" : "string" }, + "vdcs" : { + "items" : { "$ref" : "#/definitions/NestedVirtualDeviceContext" }, + "type" : "array", + "uniqueItems" : true + }, "vrf" : { "$ref" : "#/definitions/NestedVRF" }, "wireless_lans" : { "items" : { "$ref" : "#/definitions/NestedWirelessLAN" }, @@ -5165,7 +5284,10 @@ "Virtual", "Bridge", "Link Aggregation Group (LAG)", + "100BASE-FX (10/100ME FIBER)", + "100BASE-LFX (10/100ME FIBER)", "100BASE-TX (10/100ME)", + "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", @@ -5190,6 +5312,8 @@ "QSFP56 (200GE)", "QSFP-DD (400GE)", "OSFP (400GE)", + "QSFP-DD (800GE)", + "OSFP (800GE)", "1000BASE-KX (1GE)", "10GBASE-KR (10GE)", "10GBASE-KX4 (10GE)", @@ -5255,6 +5379,7 @@ "Cisco StackWise-160", "Cisco StackWise-320", "Cisco StackWise-480", + "Cisco StackWise-1T", "Juniper VCP", "Extreme SummitStack", "Extreme SummitStack-128", @@ -5269,7 +5394,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -5294,6 +5422,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -5359,6 +5489,7 @@ "cisco-stackwise-160", "cisco-stackwise-320", "cisco-stackwise-480", + "cisco-stackwise-1t", "juniper-vcp", "extreme-summitstack", "extreme-summitstack-128", @@ -5703,6 +5834,10 @@ "type" : "string", "x-nullable" : true }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -5868,6 +6003,10 @@ "title" : "Children", "type" : "integer" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -6017,6 +6156,14 @@ "title" : "ID", "type" : "integer" }, + "interval" : { + "description" : "Recurrence interval (in minutes)", + "maximum" : 2147483647, + "minimum" : 1, + "title" : "Interval", + "type" : "integer", + "x-nullable" : true + }, "job_id" : { "format" : "uuid", "title" : "Job id", @@ -6033,11 +6180,24 @@ "title" : "Obj type", "type" : "string" }, + "scheduled" : { + "format" : "date-time", + "title" : "Scheduled", + "type" : "string", + "x-nullable" : true + }, + "started" : { + "format" : "date-time", + "title" : "Started", + "type" : "string", + "x-nullable" : true + }, "status" : { "properties" : { "label" : { "enum" : [ "Pending", + "Scheduled", "Running", "Completed", "Errored", @@ -6048,6 +6208,7 @@ "value" : { "enum" : [ "pending", + "scheduled", "running", "completed", "errored", @@ -6182,6 +6343,10 @@ }, "L2VPN" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -6597,6 +6762,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device" : { "$ref" : "#/definitions/NestedDevice" }, "display" : { "readOnly" : true, @@ -6622,6 +6792,38 @@ "title" : "Serial number", "type" : "string" }, + "status" : { + "properties" : { + "label" : { + "enum" : [ + "Offline", + "Active", + "Planned", + "Staged", + "Failed", + "Decommissioning" + ], + "type" : "string" + }, + "value" : { + "enum" : [ + "offline", + "active", + "planned", + "staged", + "failed", + "decommissioning" + ], + "type" : "string" + } + }, + "required" : [ + "label", + "value" + ], + "title" : "Status", + "type" : "object" + }, "tags" : { "items" : { "$ref" : "#/definitions/NestedTag" }, "type" : "array" @@ -6850,6 +7052,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -6889,6 +7096,40 @@ "readOnly" : true, "title" : "Url", "type" : "string" + }, + "weight" : { + "format" : "decimal", + "title" : "Weight", + "type" : "number", + "x-nullable" : true + }, + "weight_unit" : { + "properties" : { + "label" : { + "enum" : [ + "Kilograms", + "Grams", + "Pounds", + "Ounces" + ], + "type" : "string" + }, + "value" : { + "enum" : [ + "kg", + "g", + "lb", + "oz" + ], + "type" : "string" + } + }, + "required" : [ + "label", + "value" + ], + "title" : "Weight unit", + "type" : "object" } }, "required" : [ @@ -8638,6 +8879,46 @@ "type" : "object", "x-nullable" : true }, + "NestedVirtualDeviceContext" : { + "properties" : { + "device" : { "$ref" : "#/definitions/NestedDevice" }, + "display" : { + "readOnly" : true, + "title" : "Display", + "type" : "string" + }, + "id" : { + "readOnly" : true, + "title" : "ID", + "type" : "integer" + }, + "identifier" : { + "description" : "Numeric identifier unique to the parent device", + "maximum" : 32767, + "minimum" : 0, + "title" : "Identifier", + "type" : "integer", + "x-nullable" : true + }, + "name" : { + "maxLength" : 64, + "minLength" : 1, + "title" : "Name", + "type" : "string" + }, + "url" : { + "format" : "uri", + "readOnly" : true, + "title" : "Url", + "type" : "string" + } + }, + "required" : [ + "name", + "device" + ], + "type" : "object" + }, "NestedVirtualMachine" : { "properties" : { "display" : { @@ -9233,6 +9514,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -10057,6 +10343,10 @@ }, "PowerPanel" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -10069,6 +10359,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -10756,6 +11051,10 @@ "title" : "Children", "type" : "integer" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -10897,18 +11196,6 @@ "title" : "Account number", "type" : "string" }, - "admin_contact" : { - "title" : "Admin contact", - "type" : "string" - }, - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer", - "x-nullable" : true - }, "asns" : { "items" : { "$ref" : "#/definitions/NestedASN" }, "type" : "array", @@ -10935,6 +11222,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -10958,16 +11250,6 @@ "title" : "Name", "type" : "string" }, - "noc_contact" : { - "title" : "NOC contact", - "type" : "string" - }, - "portal_url" : { - "format" : "uri", - "maxLength" : 200, - "title" : "Portal URL", - "type" : "string" - }, "slug" : { "format" : "slug", "maxLength" : 100, @@ -11087,6 +11369,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "desc_units" : { "description" : "Units are numbered top-to-bottom", "title" : "Descending units", @@ -11121,6 +11408,22 @@ "x-nullable" : true }, "location" : { "$ref" : "#/definitions/NestedLocation" }, + "max_weight" : { + "description" : "Maximum load capacity for the rack", + "maximum" : 2147483647, + "minimum" : 0, + "title" : "Max weight", + "type" : "integer", + "x-nullable" : true + }, + "mounting_depth" : { + "description" : "Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.", + "maximum" : 32767, + "minimum" : 0, + "title" : "Mounting depth", + "type" : "integer", + "x-nullable" : true + }, "name" : { "maxLength" : 100, "minLength" : 1, @@ -11261,6 +11564,40 @@ "title" : "Height (U)", "type" : "integer" }, + "weight" : { + "format" : "decimal", + "title" : "Weight", + "type" : "number", + "x-nullable" : true + }, + "weight_unit" : { + "properties" : { + "label" : { + "enum" : [ + "Kilograms", + "Grams", + "Pounds", + "Ounces" + ], + "type" : "string" + }, + "value" : { + "enum" : [ + "kg", + "g", + "lb", + "oz" + ], + "type" : "string" + } + }, + "required" : [ + "label", + "value" + ], + "title" : "Weight unit", + "type" : "object" + }, "width" : { "properties" : { "label" : { @@ -11298,6 +11635,10 @@ }, "RackReservation" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -12130,6 +12471,10 @@ }, "RouteTarget" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -12186,8 +12531,100 @@ "required" : [ "name" ], "type" : "object" }, + "SavedFilter" : { + "properties" : { + "content_types" : { + "items" : { "type" : "string" }, + "type" : "array", + "uniqueItems" : true + }, + "created" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Created", + "type" : "string", + "x-nullable" : true + }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, + "display" : { + "readOnly" : true, + "title" : "Display", + "type" : "string" + }, + "enabled" : { + "title" : "Enabled", + "type" : "boolean" + }, + "id" : { + "readOnly" : true, + "title" : "ID", + "type" : "integer" + }, + "last_updated" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Last updated", + "type" : "string", + "x-nullable" : true + }, + "name" : { + "maxLength" : 100, + "minLength" : 1, + "title" : "Name", + "type" : "string" + }, + "parameters" : { + "title" : "Parameters", + "type" : "object" + }, + "shared" : { + "title" : "Shared", + "type" : "boolean" + }, + "slug" : { + "format" : "slug", + "maxLength" : 100, + "minLength" : 1, + "pattern" : "^[-a-zA-Z0-9_]+$", + "title" : "Slug", + "type" : "string" + }, + "url" : { + "format" : "uri", + "readOnly" : true, + "title" : "Url", + "type" : "string" + }, + "user" : { + "title" : "User", + "type" : "integer", + "x-nullable" : true + }, + "weight" : { + "maximum" : 32767, + "minimum" : 0, + "title" : "Weight", + "type" : "integer" + } + }, + "required" : [ + "content_types", + "name", + "slug", + "parameters" + ], + "type" : "object" + }, "Service" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -12289,6 +12726,10 @@ }, "ServiceTemplate" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -13041,6 +13482,10 @@ }, "VirtualChassis" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -13053,6 +13498,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -13101,6 +13551,97 @@ "required" : [ "name" ], "type" : "object" }, + "VirtualDeviceContext" : { + "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, + "created" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Created", + "type" : "string", + "x-nullable" : true + }, + "custom_fields" : { + "default" : { }, + "title" : "Custom fields", + "type" : "object" + }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, + "device" : { "$ref" : "#/definitions/NestedDevice" }, + "display" : { + "readOnly" : true, + "title" : "Display", + "type" : "string" + }, + "id" : { + "readOnly" : true, + "title" : "ID", + "type" : "integer" + }, + "identifier" : { + "description" : "Numeric identifier unique to the parent device", + "maximum" : 32767, + "minimum" : 0, + "title" : "Identifier", + "type" : "integer", + "x-nullable" : true + }, + "interface_count" : { + "readOnly" : true, + "title" : "Interface count", + "type" : "integer" + }, + "last_updated" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Last updated", + "type" : "string", + "x-nullable" : true + }, + "name" : { + "maxLength" : 64, + "minLength" : 1, + "title" : "Name", + "type" : "string" + }, + "primary_ip" : { "$ref" : "#/definitions/NestedIPAddress" }, + "primary_ip4" : { "$ref" : "#/definitions/NestedIPAddress" }, + "primary_ip6" : { "$ref" : "#/definitions/NestedIPAddress" }, + "status" : { + "enum" : [ + "active", + "planned", + "offline" + ], + "title" : "Status", + "type" : "string" + }, + "tags" : { + "items" : { "$ref" : "#/definitions/NestedTag" }, + "type" : "array" + }, + "tenant" : { "$ref" : "#/definitions/NestedTenant" }, + "url" : { + "format" : "uri", + "readOnly" : true, + "title" : "Url", + "type" : "string" + } + }, + "required" : [ + "name", + "device", + "status" + ], + "type" : "object" + }, "VirtualMachineWithConfigContext" : { "properties" : { "cluster" : { "$ref" : "#/definitions/NestedCluster" }, @@ -13125,6 +13666,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device" : { "$ref" : "#/definitions/NestedDevice" }, "disk" : { "maximum" : 2147483647, @@ -13230,6 +13776,10 @@ }, "VLAN" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -13554,6 +14104,10 @@ }, "VRF" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -13742,19 +14296,16 @@ "type" : "boolean" }, "type_create" : { - "default" : false, "description" : "Call this webhook when a matching object is created.", "title" : "Type create", "type" : "boolean" }, "type_delete" : { - "default" : false, "description" : "Call this webhook when a matching object is deleted.", "title" : "Type delete", "type" : "boolean" }, "type_update" : { - "default" : false, "description" : "Call this webhook when a matching object is updated.", "title" : "Type update", "type" : "boolean" @@ -13834,6 +14385,10 @@ "title" : "Auth type", "type" : "object" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -13875,6 +14430,34 @@ "title" : "SSID", "type" : "string" }, + "status" : { + "properties" : { + "label" : { + "enum" : [ + "Active", + "Reserved", + "Disabled", + "Deprecated" + ], + "type" : "string" + }, + "value" : { + "enum" : [ + "active", + "reserved", + "disabled", + "deprecated" + ], + "type" : "string" + } + }, + "required" : [ + "label", + "value" + ], + "title" : "Status", + "type" : "object" + }, "tags" : { "items" : { "$ref" : "#/definitions/NestedTag" }, "type" : "array" @@ -14030,6 +14613,10 @@ "title" : "Auth type", "type" : "object" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -14117,6 +14704,10 @@ }, "WritableAggregate" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -14201,6 +14792,10 @@ "title" : "ASN", "type" : "integer" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -14303,6 +14898,10 @@ "title" : "Color", "type" : "string" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -14315,6 +14914,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -14533,7 +15137,11 @@ }, "WritableCircuitTermination" : { "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -14680,6 +15288,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_count" : { "readOnly" : true, "title" : "Device count", @@ -14756,9 +15369,7 @@ }, "required" : [ "name", - "type", - "group", - "site" + "type" ], "type" : "object" }, @@ -14897,7 +15508,11 @@ }, "WritableConsolePort" : { "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -15139,16 +15754,16 @@ "type" : "string" } }, - "required" : [ - "device_type", - "module_type", - "name" - ], + "required" : [ "name" ], "type" : "object" }, "WritableConsoleServerPort" : { "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -15390,11 +16005,7 @@ "type" : "string" } }, - "required" : [ - "device_type", - "module_type", - "name" - ], + "required" : [ "name" ], "type" : "object" }, "WritableContact" : { @@ -15420,6 +16031,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -15481,10 +16097,7 @@ "type" : "string" } }, - "required" : [ - "group", - "name" - ], + "required" : [ "name" ], "type" : "object" }, "WritableContactAssignment" : { @@ -15557,8 +16170,7 @@ "content_type", "object_id", "contact", - "role", - "priority" + "role" ], "type" : "object" }, @@ -15640,8 +16252,7 @@ }, "required" : [ "name", - "slug", - "parent" + "slug" ], "type" : "object" }, @@ -15792,12 +16403,20 @@ "title" : "Required", "type" : "boolean" }, + "search_weight" : { + "description" : "Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored.", + "maximum" : 32767, + "minimum" : 0, + "title" : "Search weight", + "type" : "integer" + }, "type" : { "description" : "The type of data this custom field holds", "enum" : [ "text", "longtext", "integer", + "decimal", "boolean", "date", "url", @@ -15852,7 +16471,7 @@ "description" : "Fields with higher weights appear lower in a form.", "maximum" : 32767, "minimum" : 0, - "title" : "Weight", + "title" : "Display weight", "type" : "integer" } }, @@ -16028,6 +16647,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_count" : { "readOnly" : true, "title" : "Device count", @@ -16116,6 +16740,22 @@ "minimum" : 0, "title" : "Position (U)", "type" : "number" + }, + "weight" : { + "format" : "decimal", + "title" : "Weight", + "type" : "number", + "x-nullable" : true + }, + "weight_unit" : { + "enum" : [ + "kg", + "g", + "lb", + "oz" + ], + "title" : "Weight unit", + "type" : "string" } }, "required" : [ @@ -16173,6 +16813,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device_role" : { "title" : "Device role", "type" : "integer" @@ -16313,14 +16958,9 @@ } }, "required" : [ - "name", "device_type", "device_role", - "tenant", - "site", - "rack", - "face", - "virtual_chassis" + "site" ], "type" : "object" }, @@ -16392,7 +17032,11 @@ }, "WritableFrontPort" : { "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -16484,7 +17128,6 @@ "type" : "integer" }, "rear_port_position" : { - "default" : 1, "maximum" : 1024, "minimum" : 1, "title" : "Rear port position", @@ -16628,7 +17271,6 @@ "type" : "integer" }, "rear_port_position" : { - "default" : 1, "maximum" : 1024, "minimum" : 1, "title" : "Rear port position", @@ -16691,8 +17333,6 @@ } }, "required" : [ - "device_type", - "module_type", "name", "type", "rear_port" @@ -16706,7 +17346,11 @@ "type" : "integer", "x-nullable" : true }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -17147,7 +17791,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -17172,6 +17819,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -17237,6 +17886,7 @@ "cisco-stackwise-160", "cisco-stackwise-320", "cisco-stackwise-480", + "cisco-stackwise-1t", "juniper-vcp", "extreme-summitstack", "extreme-summitstack-128", @@ -17258,6 +17908,11 @@ "title" : "Url", "type" : "string" }, + "vdcs" : { + "items" : { "type" : "integer" }, + "type" : "array", + "uniqueItems" : true + }, "vrf" : { "title" : "VRF", "type" : "integer", @@ -17290,6 +17945,7 @@ }, "required" : [ "device", + "vdcs", "name", "type" ], @@ -17380,7 +18036,10 @@ "virtual", "bridge", "lag", + "100base-fx", + "100base-lfx", "100base-tx", + "100base-t1", "1000base-t", "2.5gbase-t", "5gbase-t", @@ -17405,6 +18064,8 @@ "200gbase-x-qsfp56", "400gbase-x-qsfpdd", "400gbase-x-osfp", + "800gbase-x-qsfpdd", + "800gbase-x-osfp", "1000base-kx", "10gbase-kr", "10gbase-kx4", @@ -17470,6 +18131,7 @@ "cisco-stackwise-160", "cisco-stackwise-320", "cisco-stackwise-480", + "cisco-stackwise-1t", "juniper-vcp", "extreme-summitstack", "extreme-summitstack-128", @@ -17488,8 +18150,6 @@ } }, "required" : [ - "device_type", - "module_type", "name", "type" ], @@ -17752,6 +18412,10 @@ "type" : "string", "x-nullable" : true }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -17867,6 +18531,10 @@ "title" : "Children", "type" : "integer" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -18050,6 +18718,10 @@ }, "WritableL2VPN" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -18357,6 +19029,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device" : { "title" : "Device", "type" : "integer" @@ -18391,6 +19068,18 @@ "title" : "Serial number", "type" : "string" }, + "status" : { + "enum" : [ + "offline", + "active", + "planned", + "staged", + "failed", + "decommissioning" + ], + "title" : "Status", + "type" : "string" + }, "tags" : { "items" : { "$ref" : "#/definitions/NestedTag" }, "type" : "array" @@ -18574,6 +19263,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -18616,6 +19310,22 @@ "readOnly" : true, "title" : "Url", "type" : "string" + }, + "weight" : { + "format" : "decimal", + "title" : "Weight", + "type" : "number", + "x-nullable" : true + }, + "weight_unit" : { + "enum" : [ + "kg", + "g", + "lb", + "oz" + ], + "title" : "Weight unit", + "type" : "string" } }, "required" : [ @@ -18799,7 +19509,11 @@ "title" : "Amperage", "type" : "integer" }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -18841,6 +19555,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -18963,7 +19682,11 @@ }, "WritablePowerOutlet" : { "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -19369,15 +20092,15 @@ "type" : "string" } }, - "required" : [ - "device_type", - "module_type", - "name" - ], + "required" : [ "name" ], "type" : "object" }, "WritablePowerPanel" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -19390,6 +20113,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -19454,7 +20182,11 @@ "type" : "integer", "x-nullable" : true }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -19868,11 +20600,7 @@ "type" : "string" } }, - "required" : [ - "device_type", - "module_type", - "name" - ], + "required" : [ "name" ], "type" : "object" }, "WritablePrefix" : { @@ -19882,6 +20610,10 @@ "title" : "Children", "type" : "integer" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -19999,18 +20731,6 @@ "title" : "Account number", "type" : "string" }, - "admin_contact" : { - "title" : "Admin contact", - "type" : "string" - }, - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer", - "x-nullable" : true - }, "asns" : { "items" : { "type" : "integer" }, "type" : "array", @@ -20037,6 +20757,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -20060,16 +20785,6 @@ "title" : "Name", "type" : "string" }, - "noc_contact" : { - "title" : "NOC contact", - "type" : "string" - }, - "portal_url" : { - "format" : "uri", - "maxLength" : 200, - "title" : "Portal URL", - "type" : "string" - }, "slug" : { "format" : "slug", "maxLength" : 100, @@ -20192,6 +20907,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "desc_units" : { "description" : "Units are numbered top-to-bottom", "title" : "Descending units", @@ -20230,6 +20950,22 @@ "type" : "integer", "x-nullable" : true }, + "max_weight" : { + "description" : "Maximum load capacity for the rack", + "maximum" : 2147483647, + "minimum" : 0, + "title" : "Max weight", + "type" : "integer", + "x-nullable" : true + }, + "mounting_depth" : { + "description" : "Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails.", + "maximum" : 32767, + "minimum" : 0, + "title" : "Mounting depth", + "type" : "integer", + "x-nullable" : true + }, "name" : { "maxLength" : 100, "minLength" : 1, @@ -20326,6 +21062,22 @@ "title" : "Height (U)", "type" : "integer" }, + "weight" : { + "format" : "decimal", + "title" : "Weight", + "type" : "number", + "x-nullable" : true + }, + "weight_unit" : { + "enum" : [ + "kg", + "g", + "lb", + "oz" + ], + "title" : "Weight unit", + "type" : "string" + }, "width" : { "description" : "Rail-to-rail width", "enum" : [ @@ -20340,13 +21092,16 @@ }, "required" : [ "name", - "site", - "location" + "site" ], "type" : "object" }, "WritableRackReservation" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -20425,7 +21180,11 @@ }, "WritableRearPort" : { "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, + "cable" : { + "title" : "Cable", + "type" : "integer", + "x-nullable" : true + }, "cable_end" : { "minLength" : 1, "readOnly" : true, @@ -20713,8 +21472,6 @@ } }, "required" : [ - "device_type", - "module_type", "name", "type" ], @@ -20804,6 +21561,10 @@ }, "WritableRouteTarget" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -20866,6 +21627,10 @@ }, "WritableService" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -20962,6 +21727,10 @@ }, "WritableServiceTemplate" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -21641,6 +22410,10 @@ }, "WritableVirtualChassis" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -21653,6 +22426,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "display" : { "readOnly" : true, "title" : "Display", @@ -21705,6 +22483,116 @@ "required" : [ "name" ], "type" : "object" }, + "WritableVirtualDeviceContext" : { + "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, + "created" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Created", + "type" : "string", + "x-nullable" : true + }, + "custom_fields" : { + "default" : { }, + "title" : "Custom fields", + "type" : "object" + }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, + "device" : { + "title" : "Device", + "type" : "integer", + "x-nullable" : true + }, + "display" : { + "readOnly" : true, + "title" : "Display", + "type" : "string" + }, + "id" : { + "readOnly" : true, + "title" : "ID", + "type" : "integer" + }, + "identifier" : { + "description" : "Numeric identifier unique to the parent device", + "maximum" : 32767, + "minimum" : 0, + "title" : "Identifier", + "type" : "integer", + "x-nullable" : true + }, + "interface_count" : { + "readOnly" : true, + "title" : "Interface count", + "type" : "integer" + }, + "last_updated" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Last updated", + "type" : "string", + "x-nullable" : true + }, + "name" : { + "maxLength" : 64, + "minLength" : 1, + "title" : "Name", + "type" : "string" + }, + "primary_ip" : { + "readOnly" : true, + "title" : "Primary ip", + "type" : "string" + }, + "primary_ip4" : { + "title" : "Primary IPv4", + "type" : "integer", + "x-nullable" : true + }, + "primary_ip6" : { + "title" : "Primary IPv6", + "type" : "integer", + "x-nullable" : true + }, + "status" : { + "enum" : [ + "active", + "planned", + "offline" + ], + "title" : "Status", + "type" : "string" + }, + "tags" : { + "items" : { "$ref" : "#/definitions/NestedTag" }, + "type" : "array" + }, + "tenant" : { + "title" : "Tenant", + "type" : "integer", + "x-nullable" : true + }, + "url" : { + "format" : "uri", + "readOnly" : true, + "title" : "Url", + "type" : "string" + } + }, + "required" : [ + "name", + "status" + ], + "type" : "object" + }, "WritableVirtualMachineWithConfigContext" : { "properties" : { "cluster" : { @@ -21733,6 +22621,11 @@ "title" : "Custom fields", "type" : "object" }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, "device" : { "title" : "Device", "type" : "integer", @@ -21850,6 +22743,10 @@ }, "WritableVLAN" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -21947,7 +22844,6 @@ } }, "required" : [ - "group", "vid", "name" ], @@ -22086,6 +22982,10 @@ }, "WritableVRF" : { "properties" : { + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -22203,77 +23103,91 @@ "title" : "Auth Type", "type" : "string" }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string", - "x-nullable" : true - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string", - "x-nullable" : true - }, - "ssid" : { - "maxLength" : 32, - "minLength" : 1, - "title" : "SSID", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", + "comments" : { + "title" : "Comments", "type" : "string" }, - "vlan" : { - "title" : "VLAN", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ "ssid" ], - "type" : "object" - }, - "WritableWirelessLANGroup" : { - "properties" : { + "created" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Created", + "type" : "string", + "x-nullable" : true + }, + "custom_fields" : { + "default" : { }, + "title" : "Custom fields", + "type" : "object" + }, + "description" : { + "maxLength" : 200, + "title" : "Description", + "type" : "string" + }, + "display" : { + "readOnly" : true, + "title" : "Display", + "type" : "string" + }, + "group" : { + "title" : "Group", + "type" : "integer", + "x-nullable" : true + }, + "id" : { + "readOnly" : true, + "title" : "ID", + "type" : "integer" + }, + "last_updated" : { + "format" : "date-time", + "readOnly" : true, + "title" : "Last updated", + "type" : "string", + "x-nullable" : true + }, + "ssid" : { + "maxLength" : 32, + "minLength" : 1, + "title" : "SSID", + "type" : "string" + }, + "status" : { + "enum" : [ + "active", + "reserved", + "disabled", + "deprecated" + ], + "title" : "Status", + "type" : "string" + }, + "tags" : { + "items" : { "$ref" : "#/definitions/NestedTag" }, + "type" : "array" + }, + "tenant" : { + "title" : "Tenant", + "type" : "integer", + "x-nullable" : true + }, + "url" : { + "format" : "uri", + "readOnly" : true, + "title" : "Url", + "type" : "string" + }, + "vlan" : { + "title" : "VLAN", + "type" : "integer", + "x-nullable" : true + } + }, + "required" : [ "ssid" ], + "type" : "object" + }, + "WritableWirelessLANGroup" : { + "properties" : { "created" : { "format" : "date-time", "readOnly" : true, @@ -22350,8 +23264,7 @@ }, "required" : [ "name", - "slug", - "parent" + "slug" ], "type" : "object" }, @@ -22381,6 +23294,10 @@ "title" : "Auth Type", "type" : "string" }, + "comments" : { + "title" : "Comments", + "type" : "string" + }, "created" : { "format" : "date-time", "readOnly" : true, @@ -22466,7 +23383,7 @@ "license" : { "name" : "Apache v2 License" }, "termsOfService" : "https://github.com/netbox-community/netbox", "title" : "NetBox API", - "version" : "3.3" + "version" : "3.4" }, "paths" : { "/circuits/circuit-terminations/" : { @@ -22775,6 +23692,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "xconnect_id__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -22838,6 +23762,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -23289,6 +24220,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -23352,6 +24290,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -23415,6 +24360,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -23959,6 +24911,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "cid__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -24022,6 +24981,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -24671,6 +25637,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -24734,6 +25707,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "service_id__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -24797,6 +25777,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -25075,13 +26062,6 @@ "required" : false, "type" : "string" }, - { - "description" : "", - "in" : "query", - "name" : "asn", - "required" : false, - "type" : "string" - }, { "description" : "", "in" : "query", @@ -25285,6 +26265,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -25351,35 +26338,7 @@ { "description" : "", "in" : "query", - "name" : "asn__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__gt", + "name" : "slug__empty", "required" : false, "type" : "string" }, @@ -25446,6 +26405,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "account__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -26338,6 +27304,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -26492,41 +27465,6 @@ "required" : false, "type" : "string" }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__gt", - "required" : false, - "type" : "string" - }, { "description" : "", "in" : "query", @@ -26534,41 +27472,6 @@ "required" : false, "type" : "string" }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__gt", - "required" : false, - "type" : "string" - }, { "description" : "", "in" : "query", @@ -26938,6 +27841,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -27489,6 +28399,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -27552,6 +28469,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -27615,6 +28539,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -28150,6 +29081,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -28701,6 +29639,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -28764,6 +29709,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -28827,6 +29779,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -29348,6 +30307,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -29843,6 +30809,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -29906,6 +30879,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -29969,6 +30949,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -30478,6 +31465,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -30541,6 +31535,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -30604,6 +31605,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -30667,6 +31675,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -30966,6 +31981,20 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "weight", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight_unit", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -31183,6 +32212,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "model__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -31246,6 +32282,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -31309,6 +32352,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "part_number__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -31358,6 +32408,48 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "weight__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight_unit__n", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -31622,13 +32714,6 @@ "required" : false, "type" : "string" }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, { "description" : "", "in" : "query", @@ -31888,6 +32973,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -31996,98 +33088,49 @@ { "description" : "", "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", + "name" : "primary_ip4_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lt", + "name" : "primary_ip6_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", + "name" : "id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__isw", + "name" : "id__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nisw", + "name" : "id__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ie", + "name" : "id__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nie", + "name" : "id__gt", "required" : false, "type" : "string" }, @@ -32154,6 +33197,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "asset_tag__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -32532,6 +33582,76 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -32665,6 +33785,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "serial__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -32672,6 +33799,20 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "primary_ip4_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "primary_ip6_id__n", + "required" : false, + "type" : "string" + }, { "description" : "Which field to use when ordering the results.", "in" : "query", @@ -33023,6 +34164,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -33093,6 +34241,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -33637,6 +34792,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -33700,6 +34862,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -33770,6 +34939,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -33833,6 +35009,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -34382,6 +35565,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -34926,6 +36116,48 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "vlan_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "vlan", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "vrf_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "vrf", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "l2vpn_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "l2vpn", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -34985,28 +36217,21 @@ { "description" : "", "in" : "query", - "name" : "vlan_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vlan", + "name" : "vdc_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "vrf_id", + "name" : "vdc_identifier", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "vrf", + "name" : "vdc", "required" : false, "type" : "string" }, @@ -35108,6 +36333,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -35171,6 +36403,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -35416,6 +36655,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -35591,6 +36837,34 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "vrf_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "vrf__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "l2vpn_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "l2vpn__n", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -35783,14 +37057,21 @@ { "description" : "", "in" : "query", - "name" : "vrf_id__n", + "name" : "vdc_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "vrf__n", + "name" : "vdc_identifier__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "vdc__n", "required" : false, "type" : "string" }, @@ -36133,6 +37414,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -36196,6 +37484,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -36259,6 +37554,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -36705,6 +38007,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -36768,6 +38077,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -36831,6 +38147,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "part_id__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -37473,6 +38796,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -37536,6 +38866,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -37599,6 +38936,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "part_id__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -37662,6 +39006,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "asset_tag__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -37977,6 +39328,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "serial__empty", + "required" : false, + "type" : "string" + }, { "description" : "Which field to use when ordering the results.", "in" : "query", @@ -38409,6 +39767,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -38472,6 +39837,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -38542,6 +39914,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -39065,6 +40444,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -39128,6 +40514,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -39191,6 +40584,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -39595,6 +40995,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -40090,6 +41497,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -40153,6 +41567,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -40216,6 +41637,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -40578,6 +42006,20 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "weight", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight_unit", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -40760,6 +42202,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "model__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -40823,6 +42272,55 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "part_number__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight_unit__n", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41087,6 +42585,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "status", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41206,6 +42711,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "status__n", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41269,6 +42781,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "asset_tag__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41451,6 +42970,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "serial__empty", + "required" : false, + "type" : "string" + }, { "description" : "Which field to use when ordering the results.", "in" : "query", @@ -41792,6 +43318,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41855,6 +43388,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41918,6 +43458,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "napalm_driver__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -41981,6 +43528,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -42511,6 +44065,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -43130,6 +44691,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -43695,6 +45263,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -43758,6 +45333,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -43828,6 +45410,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -44419,6 +46008,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -44900,6 +46496,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -45535,6 +47138,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -45598,6 +47208,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -45731,6 +47348,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -46392,6 +48016,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -46866,6 +48497,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -46929,6 +48567,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -46992,6 +48637,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -47055,6 +48707,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -47361,6 +49020,34 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "mounting_depth", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "max_weight", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight_unit", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -47634,6 +49321,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -47697,6 +49391,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "facility_id__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -47760,6 +49461,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "asset_tag__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -47872,6 +49580,118 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "mounting_depth__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "mounting_depth__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "mounting_depth__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "mounting_depth__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "mounting_depth__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "max_weight__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "max_weight__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "max_weight__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "max_weight__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "max_weight__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight_unit__n", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -48152,6 +49972,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "serial__empty", + "required" : false, + "type" : "string" + }, { "description" : "Which field to use when ordering the results.", "in" : "query", @@ -48586,6 +50413,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -48656,6 +50490,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -49242,6 +51083,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -49305,6 +51153,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "label__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -49375,6 +51230,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "color__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -49473,6 +51335,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -50036,6 +51905,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -50099,6 +51975,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -50162,6 +52045,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -50629,6 +52519,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -50692,6 +52589,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -50755,6 +52659,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -51306,6 +53217,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -51369,6 +53287,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "slug__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -51432,6 +53357,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "facility__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -51565,6 +53497,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -52123,6 +54062,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "domain__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -52186,6 +54132,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -52487,17 +54440,17 @@ "tags" : [ "dcim" ] } }, - "/extras/config-contexts/" : { + "/dcim/virtual-device-contexts/" : { "delete" : { "description" : "", - "operationId" : "extras_config-contexts_bulk_delete", + "operationId" : "dcim_virtual-device-contexts_bulk_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "get" : { "description" : "", - "operationId" : "extras_config-contexts_list", + "operationId" : "dcim_virtual-device-contexts_list", "parameters" : [ { "description" : "", @@ -52509,14 +54462,14 @@ { "description" : "", "in" : "query", - "name" : "name", + "name" : "device", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "is_active", + "name" : "name", "required" : false, "type" : "string" }, @@ -52544,203 +54497,98 @@ { "description" : "", "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group_id", + "name" : "tag", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "cluster_group", + "name" : "tenant_group_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "cluster_id", + "name" : "tenant_group", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tenant_group_id", + "name" : "tenant_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tenant_group", + "name" : "tenant", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tenant_id", + "name" : "device_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tenant", + "name" : "status", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tag_id", + "name" : "has_primary_ip", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tag", + "name" : "id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__n", + "name" : "id__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lte", + "name" : "id__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lt", + "name" : "id__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gte", + "name" : "id__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gt", + "name" : "device__n", "required" : false, "type" : "string" }, @@ -52807,6 +54655,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -52880,126 +54735,7 @@ { "description" : "", "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_id__n", + "name" : "tag__n", "required" : false, "type" : "string" }, @@ -53034,14 +54770,14 @@ { "description" : "", "in" : "query", - "name" : "tag_id__n", + "name" : "device_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tag__n", + "name" : "status__n", "required" : false, "type" : "string" }, @@ -53083,7 +54819,7 @@ "x-nullable" : true }, "results" : { - "items" : { "$ref" : "#/definitions/ConfigContext" }, + "items" : { "$ref" : "#/definitions/VirtualDeviceContext" }, "type" : "array" } }, @@ -53094,75 +54830,75 @@ "type" : "object" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "parameters" : [ ], "patch" : { "description" : "", - "operationId" : "extras_config-contexts_bulk_partial_update", + "operationId" : "dcim_virtual-device-contexts_bulk_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } + "schema" : { "$ref" : "#/definitions/WritableVirtualDeviceContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } + "schema" : { "$ref" : "#/definitions/VirtualDeviceContext" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "post" : { "description" : "", - "operationId" : "extras_config-contexts_create", + "operationId" : "dcim_virtual-device-contexts_create", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } + "schema" : { "$ref" : "#/definitions/WritableVirtualDeviceContext" } } ], "responses" : { "201" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } + "schema" : { "$ref" : "#/definitions/VirtualDeviceContext" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "put" : { "description" : "", - "operationId" : "extras_config-contexts_bulk_update", + "operationId" : "dcim_virtual-device-contexts_bulk_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } + "schema" : { "$ref" : "#/definitions/WritableVirtualDeviceContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } + "schema" : { "$ref" : "#/definitions/VirtualDeviceContext" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] } }, - "/extras/config-contexts/{id}/" : { + "/dcim/virtual-device-contexts/{id}/" : { "delete" : { "description" : "", - "operationId" : "extras_config-contexts_delete", + "operationId" : "dcim_virtual-device-contexts_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "get" : { "description" : "", - "operationId" : "extras_config-contexts_read", + "operationId" : "dcim_virtual-device-contexts_read", "parameters" : [ ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } + "schema" : { "$ref" : "#/definitions/VirtualDeviceContext" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "parameters" : [ { - "description" : "A unique integer value identifying this config context.", + "description" : "A unique integer value identifying this virtual device context.", "in" : "path", "name" : "id", "required" : true, @@ -53170,58 +54906,79 @@ } ], "patch" : { "description" : "", - "operationId" : "extras_config-contexts_partial_update", + "operationId" : "dcim_virtual-device-contexts_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } + "schema" : { "$ref" : "#/definitions/WritableVirtualDeviceContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } + "schema" : { "$ref" : "#/definitions/VirtualDeviceContext" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] }, "put" : { "description" : "", - "operationId" : "extras_config-contexts_update", + "operationId" : "dcim_virtual-device-contexts_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } + "schema" : { "$ref" : "#/definitions/WritableVirtualDeviceContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } + "schema" : { "$ref" : "#/definitions/VirtualDeviceContext" } } }, - "tags" : [ "extras" ] + "tags" : [ "dcim" ] } }, - "/extras/content-types/" : { + "/extras/config-contexts/" : { + "delete" : { + "description" : "", + "operationId" : "extras_config-contexts_bulk_delete", + "parameters" : [ ], + "responses" : { "204" : { "description" : "" } }, + "tags" : [ "extras" ] + }, "get" : { - "description" : "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", - "operationId" : "extras_content-types_list", + "description" : "", + "operationId" : "extras_config-contexts_list", "parameters" : [ { "description" : "", "in" : "query", "name" : "id", "required" : false, - "type" : "number" + "type" : "string" }, { "description" : "", "in" : "query", - "name" : "app_label", + "name" : "name", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "model", + "name" : "is_active", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "last_updated", "required" : false, "type" : "string" }, @@ -53233,268 +54990,205 @@ "type" : "string" }, { - "description" : "Which field to use when ordering the results.", + "description" : "", "in" : "query", - "name" : "ordering", + "name" : "region_id", "required" : false, "type" : "string" }, { - "description" : "Number of results to return per page.", + "description" : "", "in" : "query", - "name" : "limit", + "name" : "region", "required" : false, - "type" : "integer" + "type" : "string" }, { - "description" : "The initial index from which to return the results.", + "description" : "", "in" : "query", - "name" : "offset", + "name" : "site_group", "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ContentType" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ] - }, - "/extras/content-types/{id}/" : { - "get" : { - "description" : "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", - "operationId" : "extras_content-types_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ContentType" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this content type.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/extras/custom-fields/" : { - "delete" : { - "description" : "", - "operationId" : "extras_custom-fields_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_custom-fields_list", - "parameters" : [ + "type" : "string" + }, { "description" : "", "in" : "query", - "name" : "id", + "name" : "site_group_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types", + "name" : "site_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name", + "name" : "site", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name", + "name" : "location_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "required", + "name" : "location", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "filter_logic", + "name" : "device_type_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "ui_visibility", + "name" : "role_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight", + "name" : "role", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description", + "name" : "platform_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "q", + "name" : "platform", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "type", + "name" : "cluster_type_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id", + "name" : "cluster_type", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__n", + "name" : "cluster_group_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lte", + "name" : "cluster_group", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lt", + "name" : "cluster_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gte", + "name" : "tenant_group_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gt", + "name" : "tenant_group", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__n", + "name" : "tenant_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__ic", + "name" : "tenant", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__nic", + "name" : "tag_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__iew", + "name" : "tag", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__niew", + "name" : "id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__isw", + "name" : "id__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__nisw", + "name" : "id__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__ie", + "name" : "id__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_types__nie", + "name" : "id__gt", "required" : false, "type" : "string" }, @@ -53564,217 +55258,245 @@ { "description" : "", "in" : "query", - "name" : "group_name__n", + "name" : "name__empty", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__ic", + "name" : "created__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__nic", + "name" : "created__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__iew", + "name" : "created__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__niew", + "name" : "created__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__isw", + "name" : "created__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__nisw", + "name" : "last_updated__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__ie", + "name" : "last_updated__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__nie", + "name" : "last_updated__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "filter_logic__n", + "name" : "last_updated__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "ui_visibility__n", + "name" : "last_updated__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight__n", + "name" : "region_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight__lte", + "name" : "region__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight__lt", + "name" : "site_group__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight__gte", + "name" : "site_group_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight__gt", + "name" : "site_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__n", + "name" : "site__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__ic", + "name" : "location_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__nic", + "name" : "location__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__iew", + "name" : "device_type_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__niew", + "name" : "role_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__isw", + "name" : "role__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__nisw", + "name" : "platform_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__ie", + "name" : "platform__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__nie", + "name" : "cluster_type_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "type__n", + "name" : "cluster_type__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id__n", + "name" : "cluster_group_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id__lte", + "name" : "cluster_group__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id__lt", + "name" : "cluster_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id__gte", + "name" : "tenant_group_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id__gt", + "name" : "tenant_group__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "tenant_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "tenant__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "tag_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "tag__n", "required" : false, "type" : "string" }, @@ -53816,7 +55538,7 @@ "x-nullable" : true }, "results" : { - "items" : { "$ref" : "#/definitions/CustomField" }, + "items" : { "$ref" : "#/definitions/ConfigContext" }, "type" : "array" } }, @@ -53832,70 +55554,70 @@ "parameters" : [ ], "patch" : { "description" : "", - "operationId" : "extras_custom-fields_bulk_partial_update", + "operationId" : "extras_config-contexts_bulk_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } + "schema" : { "$ref" : "#/definitions/WritableConfigContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } + "schema" : { "$ref" : "#/definitions/ConfigContext" } } }, "tags" : [ "extras" ] }, "post" : { "description" : "", - "operationId" : "extras_custom-fields_create", + "operationId" : "extras_config-contexts_create", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } + "schema" : { "$ref" : "#/definitions/WritableConfigContext" } } ], "responses" : { "201" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } + "schema" : { "$ref" : "#/definitions/ConfigContext" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_custom-fields_bulk_update", + "operationId" : "extras_config-contexts_bulk_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } + "schema" : { "$ref" : "#/definitions/WritableConfigContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } + "schema" : { "$ref" : "#/definitions/ConfigContext" } } }, "tags" : [ "extras" ] } }, - "/extras/custom-fields/{id}/" : { + "/extras/config-contexts/{id}/" : { "delete" : { "description" : "", - "operationId" : "extras_custom-fields_delete", + "operationId" : "extras_config-contexts_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_custom-fields_read", + "operationId" : "extras_config-contexts_read", "parameters" : [ ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } + "schema" : { "$ref" : "#/definitions/ConfigContext" } } }, "tags" : [ "extras" ] }, "parameters" : [ { - "description" : "A unique integer value identifying this custom field.", + "description" : "A unique integer value identifying this config context.", "in" : "path", "name" : "id", "required" : true, @@ -53903,46 +55625,151 @@ } ], "patch" : { "description" : "", - "operationId" : "extras_custom-fields_partial_update", + "operationId" : "extras_config-contexts_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } + "schema" : { "$ref" : "#/definitions/WritableConfigContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } + "schema" : { "$ref" : "#/definitions/ConfigContext" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_custom-fields_update", + "operationId" : "extras_config-contexts_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } + "schema" : { "$ref" : "#/definitions/WritableConfigContext" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } + "schema" : { "$ref" : "#/definitions/ConfigContext" } } }, "tags" : [ "extras" ] } }, - "/extras/custom-links/" : { + "/extras/content-types/" : { + "get" : { + "description" : "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", + "operationId" : "extras_content-types_list", + "parameters" : [ + { + "description" : "", + "in" : "query", + "name" : "id", + "required" : false, + "type" : "number" + }, + { + "description" : "", + "in" : "query", + "name" : "app_label", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "model", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "q", + "required" : false, + "type" : "string" + }, + { + "description" : "Which field to use when ordering the results.", + "in" : "query", + "name" : "ordering", + "required" : false, + "type" : "string" + }, + { + "description" : "Number of results to return per page.", + "in" : "query", + "name" : "limit", + "required" : false, + "type" : "integer" + }, + { + "description" : "The initial index from which to return the results.", + "in" : "query", + "name" : "offset", + "required" : false, + "type" : "integer" + } + ], + "responses" : { "200" : { + "description" : "", + "schema" : { + "properties" : { + "count" : { "type" : "integer" }, + "next" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "previous" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "results" : { + "items" : { "$ref" : "#/definitions/ContentType" }, + "type" : "array" + } + }, + "required" : [ + "count", + "results" + ], + "type" : "object" + } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ ] + }, + "/extras/content-types/{id}/" : { + "get" : { + "description" : "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", + "operationId" : "extras_content-types_read", + "parameters" : [ ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ContentType" } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ { + "description" : "A unique integer value identifying this content type.", + "in" : "path", + "name" : "id", + "required" : true, + "type" : "integer" + } ] + }, + "/extras/custom-fields/" : { "delete" : { "description" : "", - "operationId" : "extras_custom-links_bulk_delete", + "operationId" : "extras_custom-fields_bulk_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_custom-links_list", + "operationId" : "extras_custom-fields_list", "parameters" : [ { "description" : "", @@ -53954,7 +55781,7 @@ { "description" : "", "in" : "query", - "name" : "content_type", + "name" : "content_types", "required" : false, "type" : "string" }, @@ -53968,42 +55795,49 @@ { "description" : "", "in" : "query", - "name" : "enabled", + "name" : "group_name", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text", + "name" : "required", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url", + "name" : "search_weight", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "weight", + "name" : "filter_logic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name", + "name" : "ui_visibility", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "new_window", + "name" : "weight", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description", "required" : false, "type" : "string" }, @@ -54014,6 +55848,20 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "type", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -54052,7 +55900,63 @@ { "description" : "", "in" : "query", - "name" : "content_type__n", + "name" : "content_types__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__nie", "required" : false, "type" : "string" }, @@ -54122,126 +56026,126 @@ { "description" : "", "in" : "query", - "name" : "link_text__n", + "name" : "name__empty", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__ic", + "name" : "group_name__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__nic", + "name" : "group_name__ic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__iew", + "name" : "group_name__nic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__niew", + "name" : "group_name__iew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__isw", + "name" : "group_name__niew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__nisw", + "name" : "group_name__isw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__ie", + "name" : "group_name__nisw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_text__nie", + "name" : "group_name__ie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__n", + "name" : "group_name__nie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__ic", + "name" : "group_name__empty", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__nic", + "name" : "search_weight__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__iew", + "name" : "search_weight__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__niew", + "name" : "search_weight__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__isw", + "name" : "search_weight__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__nisw", + "name" : "search_weight__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__ie", + "name" : "filter_logic__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "link_url__nie", + "name" : "ui_visibility__n", "required" : false, "type" : "string" }, @@ -54283,63 +56187,112 @@ { "description" : "", "in" : "query", - "name" : "group_name__n", + "name" : "description__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__ic", + "name" : "description__ic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__nic", + "name" : "description__nic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__iew", + "name" : "description__iew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__niew", + "name" : "description__niew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__isw", + "name" : "description__isw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__nisw", + "name" : "description__nisw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__ie", + "name" : "description__ie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "group_name__nie", + "name" : "description__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "type__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__gt", "required" : false, "type" : "string" }, @@ -54381,7 +56334,7 @@ "x-nullable" : true }, "results" : { - "items" : { "$ref" : "#/definitions/CustomLink" }, + "items" : { "$ref" : "#/definitions/CustomField" }, "type" : "array" } }, @@ -54397,70 +56350,70 @@ "parameters" : [ ], "patch" : { "description" : "", - "operationId" : "extras_custom-links_bulk_partial_update", + "operationId" : "extras_custom-fields_bulk_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/WritableCustomField" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/CustomField" } } }, "tags" : [ "extras" ] }, "post" : { "description" : "", - "operationId" : "extras_custom-links_create", + "operationId" : "extras_custom-fields_create", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/WritableCustomField" } } ], "responses" : { "201" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/CustomField" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_custom-links_bulk_update", + "operationId" : "extras_custom-fields_bulk_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/WritableCustomField" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/CustomField" } } }, "tags" : [ "extras" ] } }, - "/extras/custom-links/{id}/" : { + "/extras/custom-fields/{id}/" : { "delete" : { "description" : "", - "operationId" : "extras_custom-links_delete", + "operationId" : "extras_custom-fields_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_custom-links_read", + "operationId" : "extras_custom-fields_read", "parameters" : [ ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/CustomField" } } }, "tags" : [ "extras" ] }, "parameters" : [ { - "description" : "A unique integer value identifying this custom link.", + "description" : "A unique integer value identifying this custom field.", "in" : "path", "name" : "id", "required" : true, @@ -54468,46 +56421,46 @@ } ], "patch" : { "description" : "", - "operationId" : "extras_custom-links_partial_update", + "operationId" : "extras_custom-fields_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/WritableCustomField" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/CustomField" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_custom-links_update", + "operationId" : "extras_custom-fields_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/WritableCustomField" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } + "schema" : { "$ref" : "#/definitions/CustomField" } } }, "tags" : [ "extras" ] } }, - "/extras/export-templates/" : { + "/extras/custom-links/" : { "delete" : { "description" : "", - "operationId" : "extras_export-templates_bulk_delete", + "operationId" : "extras_custom-links_bulk_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_export-templates_list", + "operationId" : "extras_custom-links_list", "parameters" : [ { "description" : "", @@ -54519,7 +56472,7 @@ { "description" : "", "in" : "query", - "name" : "content_type", + "name" : "content_types", "required" : false, "type" : "string" }, @@ -54533,7 +56486,42 @@ { "description" : "", "in" : "query", - "name" : "description", + "name" : "enabled", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "new_window", "required" : false, "type" : "string" }, @@ -54544,6 +56532,13 @@ "required" : false, "type" : "string" }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id", + "required" : false, + "type" : "string" + }, { "description" : "", "in" : "query", @@ -54582,179 +56577,1295 @@ { "description" : "", "in" : "query", - "name" : "content_type__n", + "name" : "content_types__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__n", + "name" : "content_types__ic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ic", + "name" : "content_types__nic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nic", + "name" : "content_types__iew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__iew", + "name" : "content_types__niew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__niew", + "name" : "content_types__isw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__isw", + "name" : "content_types__nisw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nisw", + "name" : "content_types__ie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ie", + "name" : "content_types__nie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nie", + "name" : "name__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__n", + "name" : "name__ic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__ic", + "name" : "name__nic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__nic", + "name" : "name__iew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__iew", + "name" : "name__niew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__niew", + "name" : "name__isw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__isw", + "name" : "name__nisw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__nisw", + "name" : "name__ie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__ie", + "name" : "name__nie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "description__nie", + "name" : "name__empty", "required" : false, "type" : "string" }, { - "description" : "Which field to use when ordering the results.", + "description" : "", "in" : "query", - "name" : "ordering", + "name" : "link_text__n", "required" : false, "type" : "string" }, { - "description" : "Number of results to return per page.", + "description" : "", "in" : "query", - "name" : "limit", + "name" : "link_text__ic", "required" : false, - "type" : "integer" + "type" : "string" }, { - "description" : "The initial index from which to return the results.", + "description" : "", "in" : "query", - "name" : "offset", + "name" : "link_text__nic", "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ExportTemplate" }, - "type" : "array" - } - }, - "required" : [ + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_text__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "link_url__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "weight__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "group_name__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "Which field to use when ordering the results.", + "in" : "query", + "name" : "ordering", + "required" : false, + "type" : "string" + }, + { + "description" : "Number of results to return per page.", + "in" : "query", + "name" : "limit", + "required" : false, + "type" : "integer" + }, + { + "description" : "The initial index from which to return the results.", + "in" : "query", + "name" : "offset", + "required" : false, + "type" : "integer" + } + ], + "responses" : { "200" : { + "description" : "", + "schema" : { + "properties" : { + "count" : { "type" : "integer" }, + "next" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "previous" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "results" : { + "items" : { "$ref" : "#/definitions/CustomLink" }, + "type" : "array" + } + }, + "required" : [ + "count", + "results" + ], + "type" : "object" + } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ ], + "patch" : { + "description" : "", + "operationId" : "extras_custom-links_bulk_partial_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/CustomLink" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/CustomLink" } + } }, + "tags" : [ "extras" ] + }, + "post" : { + "description" : "", + "operationId" : "extras_custom-links_create", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/CustomLink" } + } ], + "responses" : { "201" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/CustomLink" } + } }, + "tags" : [ "extras" ] + }, + "put" : { + "description" : "", + "operationId" : "extras_custom-links_bulk_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/CustomLink" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/CustomLink" } + } }, + "tags" : [ "extras" ] + } + }, + "/extras/custom-links/{id}/" : { + "delete" : { + "description" : "", + "operationId" : "extras_custom-links_delete", + "parameters" : [ ], + "responses" : { "204" : { "description" : "" } }, + "tags" : [ "extras" ] + }, + "get" : { + "description" : "", + "operationId" : "extras_custom-links_read", + "parameters" : [ ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/CustomLink" } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ { + "description" : "A unique integer value identifying this custom link.", + "in" : "path", + "name" : "id", + "required" : true, + "type" : "integer" + } ], + "patch" : { + "description" : "", + "operationId" : "extras_custom-links_partial_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/CustomLink" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/CustomLink" } + } }, + "tags" : [ "extras" ] + }, + "put" : { + "description" : "", + "operationId" : "extras_custom-links_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/CustomLink" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/CustomLink" } + } }, + "tags" : [ "extras" ] + } + }, + "/extras/export-templates/" : { + "delete" : { + "description" : "", + "operationId" : "extras_export-templates_bulk_delete", + "parameters" : [ ], + "responses" : { "204" : { "description" : "" } }, + "tags" : [ "extras" ] + }, + "get" : { + "description" : "", + "operationId" : "extras_export-templates_list", + "parameters" : [ + { + "description" : "", + "in" : "query", + "name" : "id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "q", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_types__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "description__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "Which field to use when ordering the results.", + "in" : "query", + "name" : "ordering", + "required" : false, + "type" : "string" + }, + { + "description" : "Number of results to return per page.", + "in" : "query", + "name" : "limit", + "required" : false, + "type" : "integer" + }, + { + "description" : "The initial index from which to return the results.", + "in" : "query", + "name" : "offset", + "required" : false, + "type" : "integer" + } + ], + "responses" : { "200" : { + "description" : "", + "schema" : { + "properties" : { + "count" : { "type" : "integer" }, + "next" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "previous" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "results" : { + "items" : { "$ref" : "#/definitions/ExportTemplate" }, + "type" : "array" + } + }, + "required" : [ + "count", + "results" + ], + "type" : "object" + } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ ], + "patch" : { + "description" : "", + "operationId" : "extras_export-templates_bulk_partial_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } }, + "tags" : [ "extras" ] + }, + "post" : { + "description" : "", + "operationId" : "extras_export-templates_create", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } ], + "responses" : { "201" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } }, + "tags" : [ "extras" ] + }, + "put" : { + "description" : "", + "operationId" : "extras_export-templates_bulk_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } }, + "tags" : [ "extras" ] + } + }, + "/extras/export-templates/{id}/" : { + "delete" : { + "description" : "", + "operationId" : "extras_export-templates_delete", + "parameters" : [ ], + "responses" : { "204" : { "description" : "" } }, + "tags" : [ "extras" ] + }, + "get" : { + "description" : "", + "operationId" : "extras_export-templates_read", + "parameters" : [ ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ { + "description" : "A unique integer value identifying this export template.", + "in" : "path", + "name" : "id", + "required" : true, + "type" : "integer" + } ], + "patch" : { + "description" : "", + "operationId" : "extras_export-templates_partial_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } }, + "tags" : [ "extras" ] + }, + "put" : { + "description" : "", + "operationId" : "extras_export-templates_update", + "parameters" : [ { + "in" : "body", + "name" : "data", + "required" : true, + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/ExportTemplate" } + } }, + "tags" : [ "extras" ] + } + }, + "/extras/image-attachments/" : { + "delete" : { + "description" : "", + "operationId" : "extras_image-attachments_bulk_delete", + "parameters" : [ ], + "responses" : { "204" : { "description" : "" } }, + "tags" : [ "extras" ] + }, + "get" : { + "description" : "", + "operationId" : "extras_image-attachments_list", + "parameters" : [ + { + "description" : "", + "in" : "query", + "name" : "id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "object_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "q", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "object_id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "object_id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "object_id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "object_id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "object_id__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "content_type__n", + "required" : false, + "type" : "string" + }, + { + "description" : "Which field to use when ordering the results.", + "in" : "query", + "name" : "ordering", + "required" : false, + "type" : "string" + }, + { + "description" : "Number of results to return per page.", + "in" : "query", + "name" : "limit", + "required" : false, + "type" : "integer" + }, + { + "description" : "The initial index from which to return the results.", + "in" : "query", + "name" : "offset", + "required" : false, + "type" : "integer" + } + ], + "responses" : { "200" : { + "description" : "", + "schema" : { + "properties" : { + "count" : { "type" : "integer" }, + "next" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "previous" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "results" : { + "items" : { "$ref" : "#/definitions/ImageAttachment" }, + "type" : "array" + } + }, + "required" : [ "count", "results" ], @@ -54766,70 +57877,70 @@ "parameters" : [ ], "patch" : { "description" : "", - "operationId" : "extras_export-templates_bulk_partial_update", + "operationId" : "extras_image-attachments_bulk_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } }, "tags" : [ "extras" ] }, "post" : { "description" : "", - "operationId" : "extras_export-templates_create", + "operationId" : "extras_image-attachments_create", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } ], "responses" : { "201" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_export-templates_bulk_update", + "operationId" : "extras_image-attachments_bulk_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } }, "tags" : [ "extras" ] } }, - "/extras/export-templates/{id}/" : { + "/extras/image-attachments/{id}/" : { "delete" : { "description" : "", - "operationId" : "extras_export-templates_delete", + "operationId" : "extras_image-attachments_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_export-templates_read", + "operationId" : "extras_image-attachments_read", "parameters" : [ ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } }, "tags" : [ "extras" ] }, "parameters" : [ { - "description" : "A unique integer value identifying this export template.", + "description" : "A unique integer value identifying this image attachment.", "in" : "path", "name" : "id", "required" : true, @@ -54837,72 +57948,457 @@ } ], "patch" : { "description" : "", - "operationId" : "extras_export-templates_partial_update", + "operationId" : "extras_image-attachments_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_export-templates_update", + "operationId" : "extras_image-attachments_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } + "schema" : { "$ref" : "#/definitions/ImageAttachment" } } }, "tags" : [ "extras" ] } }, - "/extras/image-attachments/" : { + "/extras/job-results/" : { + "get" : { + "description" : "Retrieve a list of job results", + "operationId" : "extras_job-results_list", + "parameters" : [ + { + "description" : "", + "in" : "query", + "name" : "id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "interval", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "status", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "user", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "obj_type", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "q", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created__before", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created__after", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "scheduled", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "scheduled__before", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "scheduled__after", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "started", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "started__before", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "started__after", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "completed", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "completed__before", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "completed__after", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "id__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "interval__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "interval__lte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "interval__lt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "interval__gte", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "interval__gt", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "status__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "user__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "obj_type__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__n", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nic", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__iew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__niew", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__isw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nisw", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__ie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__nie", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "name__empty", + "required" : false, + "type" : "string" + }, + { + "description" : "Which field to use when ordering the results.", + "in" : "query", + "name" : "ordering", + "required" : false, + "type" : "string" + }, + { + "description" : "Number of results to return per page.", + "in" : "query", + "name" : "limit", + "required" : false, + "type" : "integer" + }, + { + "description" : "The initial index from which to return the results.", + "in" : "query", + "name" : "offset", + "required" : false, + "type" : "integer" + } + ], + "responses" : { "200" : { + "description" : "", + "schema" : { + "properties" : { + "count" : { "type" : "integer" }, + "next" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "previous" : { + "format" : "uri", + "type" : "string", + "x-nullable" : true + }, + "results" : { + "items" : { "$ref" : "#/definitions/JobResult" }, + "type" : "array" + } + }, + "required" : [ + "count", + "results" + ], + "type" : "object" + } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ ] + }, + "/extras/job-results/{id}/" : { + "get" : { + "description" : "Retrieve a list of job results", + "operationId" : "extras_job-results_read", + "parameters" : [ ], + "responses" : { "200" : { + "description" : "", + "schema" : { "$ref" : "#/definitions/JobResult" } + } }, + "tags" : [ "extras" ] + }, + "parameters" : [ { + "description" : "A unique integer value identifying this job result.", + "in" : "path", + "name" : "id", + "required" : true, + "type" : "integer" + } ] + }, + "/extras/journal-entries/" : { "delete" : { "description" : "", - "operationId" : "extras_image-attachments_bulk_delete", + "operationId" : "extras_journal-entries_bulk_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_image-attachments_list", + "operationId" : "extras_journal-entries_list", "parameters" : [ { "description" : "", "in" : "query", - "name" : "id", + "name" : "id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "assigned_object_type_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "assigned_object_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type_id", + "name" : "created", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "object_id", + "name" : "kind", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name", + "name" : "last_updated", "required" : false, "type" : "string" }, @@ -54916,14 +58412,28 @@ { "description" : "", "in" : "query", - "name" : "created", + "name" : "tag", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type", + "name" : "assigned_object_type", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created_by_id", + "required" : false, + "type" : "string" + }, + { + "description" : "", + "in" : "query", + "name" : "created_by", "required" : false, "type" : "string" }, @@ -54965,112 +58475,112 @@ { "description" : "", "in" : "query", - "name" : "content_type_id__n", + "name" : "assigned_object_type_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "object_id__n", + "name" : "assigned_object_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "object_id__lte", + "name" : "assigned_object_id__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "object_id__lt", + "name" : "assigned_object_id__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "object_id__gte", + "name" : "assigned_object_id__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "object_id__gt", + "name" : "assigned_object_id__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__n", + "name" : "kind__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ic", + "name" : "last_updated__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nic", + "name" : "last_updated__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__iew", + "name" : "last_updated__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__niew", + "name" : "last_updated__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__isw", + "name" : "last_updated__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nisw", + "name" : "tag__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ie", + "name" : "assigned_object_type__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nie", + "name" : "created_by_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "content_type__n", + "name" : "created_by__n", "required" : false, "type" : "string" }, @@ -55112,7 +58622,7 @@ "x-nullable" : true }, "results" : { - "items" : { "$ref" : "#/definitions/ImageAttachment" }, + "items" : { "$ref" : "#/definitions/JournalEntry" }, "type" : "array" } }, @@ -55128,70 +58638,70 @@ "parameters" : [ ], "patch" : { "description" : "", - "operationId" : "extras_image-attachments_bulk_partial_update", + "operationId" : "extras_journal-entries_bulk_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/JournalEntry" } } }, "tags" : [ "extras" ] }, "post" : { "description" : "", - "operationId" : "extras_image-attachments_create", + "operationId" : "extras_journal-entries_create", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } } ], "responses" : { "201" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/JournalEntry" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_image-attachments_bulk_update", + "operationId" : "extras_journal-entries_bulk_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/JournalEntry" } } }, "tags" : [ "extras" ] } }, - "/extras/image-attachments/{id}/" : { + "/extras/journal-entries/{id}/" : { "delete" : { "description" : "", - "operationId" : "extras_image-attachments_delete", + "operationId" : "extras_journal-entries_delete", "parameters" : [ ], "responses" : { "204" : { "description" : "" } }, "tags" : [ "extras" ] }, "get" : { "description" : "", - "operationId" : "extras_image-attachments_read", + "operationId" : "extras_journal-entries_read", "parameters" : [ ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/JournalEntry" } } }, "tags" : [ "extras" ] }, "parameters" : [ { - "description" : "A unique integer value identifying this image attachment.", + "description" : "A unique integer value identifying this journal entry.", "in" : "path", "name" : "id", "required" : true, @@ -55199,39 +58709,39 @@ } ], "patch" : { "description" : "", - "operationId" : "extras_image-attachments_partial_update", + "operationId" : "extras_journal-entries_partial_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/JournalEntry" } } }, "tags" : [ "extras" ] }, "put" : { "description" : "", - "operationId" : "extras_image-attachments_update", + "operationId" : "extras_journal-entries_update", "parameters" : [ { "in" : "body", "name" : "data", "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } } ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } + "schema" : { "$ref" : "#/definitions/JournalEntry" } } }, "tags" : [ "extras" ] } }, - "/extras/job-results/" : { + "/extras/object-changes/" : { "get" : { - "description" : "Retrieve a list of job results", - "operationId" : "extras_job-results_list", + "description" : "Retrieve a list of recent changes.", + "operationId" : "extras_object-changes_list", "parameters" : [ { "description" : "", @@ -55240,27 +58750,6 @@ "required" : false, "type" : "string" }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "completed", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, { "description" : "", "in" : "query", @@ -55271,448 +58760,315 @@ { "description" : "", "in" : "query", - "name" : "obj_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", + "name" : "user_name", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "status__n", + "name" : "request_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "user__n", + "name" : "action", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "obj_type__n", + "name" : "changed_object_type_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__n", + "name" : "changed_object_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ic", + "name" : "object_repr", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nic", + "name" : "q", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__iew", + "name" : "time", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__niew", + "name" : "changed_object_type", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__isw", + "name" : "user_id", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nisw", + "name" : "id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__ie", + "name" : "id__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Which field to use when ordering the results.", - "in" : "query", - "name" : "ordering", + "name" : "id__lt", "required" : false, "type" : "string" }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/JobResult" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ] - }, - "/extras/job-results/{id}/" : { - "get" : { - "description" : "Retrieve a list of job results", - "operationId" : "extras_job-results_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JobResult" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this job result.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/extras/journal-entries/" : { - "delete" : { - "description" : "", - "operationId" : "extras_journal-entries_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_journal-entries_list", - "parameters" : [ { "description" : "", "in" : "query", - "name" : "id", + "name" : "id__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_type_id", + "name" : "id__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_id", + "name" : "user__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "created", + "name" : "user_name__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "kind", + "name" : "user_name__ic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "last_updated", + "name" : "user_name__nic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "q", + "name" : "user_name__iew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tag", + "name" : "user_name__niew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_type", + "name" : "user_name__isw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "created_by_id", + "name" : "user_name__nisw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "created_by", + "name" : "user_name__ie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__n", + "name" : "user_name__nie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lte", + "name" : "user_name__empty", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__lt", + "name" : "action__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gte", + "name" : "changed_object_type_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "id__gt", + "name" : "changed_object_id__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_type_id__n", + "name" : "changed_object_id__lte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_id__n", + "name" : "changed_object_id__lt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_id__lte", + "name" : "changed_object_id__gte", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_id__lt", + "name" : "changed_object_id__gt", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_id__gte", + "name" : "object_repr__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_id__gt", + "name" : "object_repr__ic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "kind__n", + "name" : "object_repr__nic", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "last_updated__n", + "name" : "object_repr__iew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "last_updated__lte", + "name" : "object_repr__niew", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "last_updated__lt", + "name" : "object_repr__isw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "last_updated__gte", + "name" : "object_repr__nisw", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "last_updated__gt", + "name" : "object_repr__ie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "tag__n", + "name" : "object_repr__nie", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "assigned_object_type__n", + "name" : "object_repr__empty", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "created_by_id__n", + "name" : "changed_object_type__n", "required" : false, "type" : "string" }, { "description" : "", "in" : "query", - "name" : "created_by__n", + "name" : "user_id__n", "required" : false, "type" : "string" }, @@ -55754,7 +59110,7 @@ "x-nullable" : true }, "results" : { - "items" : { "$ref" : "#/definitions/JournalEntry" }, + "items" : { "$ref" : "#/definitions/ObjectChange" }, "type" : "array" } }, @@ -55767,113 +59123,78 @@ } }, "tags" : [ "extras" ] }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_journal-entries_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], + "parameters" : [ ] + }, + "/extras/object-changes/{id}/" : { + "get" : { + "description" : "Retrieve a list of recent changes.", + "operationId" : "extras_object-changes_read", + "parameters" : [ ], "responses" : { "200" : { "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_journal-entries_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } + "schema" : { "$ref" : "#/definitions/ObjectChange" } } }, "tags" : [ "extras" ] }, - "put" : { - "description" : "", - "operationId" : "extras_journal-entries_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - } + "parameters" : [ { + "description" : "A unique integer value identifying this object change.", + "in" : "path", + "name" : "id", + "required" : true, + "type" : "integer" + } ] }, - "/extras/journal-entries/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_journal-entries_delete", + "/extras/reports/" : { + "get" : { + "description" : "Compile all reports and their related results (if any). Result data is deferred in the list view.", + "operationId" : "extras_reports_list", "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, + "responses" : { "200" : { "description" : "" } }, "tags" : [ "extras" ] }, + "parameters" : [ ] + }, + "/extras/reports/{id}/" : { "get" : { - "description" : "", - "operationId" : "extras_journal-entries_read", + "description" : "Retrieve a single Report identified as \".\".", + "operationId" : "extras_reports_read", "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, + "responses" : { "200" : { "description" : "" } }, "tags" : [ "extras" ] }, "parameters" : [ { - "description" : "A unique integer value identifying this journal entry.", "in" : "path", "name" : "id", "required" : true, - "type" : "integer" + "type" : "string" + } ] + }, + "/extras/reports/{id}/run/" : { + "parameters" : [ { + "in" : "path", + "name" : "id", + "required" : true, + "type" : "string" } ], - "patch" : { - "description" : "", - "operationId" : "extras_journal-entries_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_journal-entries_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, + "post" : { + "description" : "Run a Report identified as \".